playMaker

Author Topic: Complete newbie - 2D flight movement (no gravity)  (Read 1148 times)

Haserhud

  • Playmaker Newbie
  • *
  • Posts: 19
Complete newbie - 2D flight movement (no gravity)
« on: January 28, 2020, 11:21:52 AM »
Hello all,

I have scoured the internet and Youtube for a tutorial on 2D "free" movement for use in SHMUPs. I found plenty for 3D, but when I apply the directions to my 2D project, needless to say, it doesn't work at all.

I can also find plenty of tutorials on 2D movement for platformers where a plane and gravity are present - again, not what I'm looking for.

I have no coding experience, and I only recently picked up Unity and Playmaker.
I feel silly here because what I'm trying to do really isn't hard.

Can anyone help or point me in the direction of a 2D flight movement tutorial I may have missed?

Thanks.

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Complete newbie - 2D flight movement (no gravity)
« Reply #1 on: January 28, 2020, 12:47:19 PM »
Tried this ?

Haserhud

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Complete newbie - 2D flight movement (no gravity)
« Reply #2 on: January 28, 2020, 01:38:20 PM »
Tried this ?


Thank you so much! It worked!

I also found that using Translate seems to get me the same results. Any reason I'd want to use Set Velocity over Translate?

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Complete newbie - 2D flight movement (no gravity)
« Reply #3 on: January 28, 2020, 03:29:22 PM »
Ya, Set Velocity is required in this case to move manually in preferred direction. And you can use Translate too for constant movement in one direction.

Using both will give nice results. Make sure to use lower value in Translate. Try multiple values and set which seems better.

Good luck !


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Complete newbie - 2D flight movement (no gravity)
« Reply #4 on: January 29, 2020, 09:42:22 AM »
Hi.
Main Difference between Velocity and Translate is that Velocity uses physics and Translate does not (it overrides Physics)