Flying up when pressing, falling down when letting go..
Hi guys,
I have an actor standing till that has objects coming at it. You can touch anywhere on the screen and fly up, and when you let go you fly back down. I have everything set up to activate the fly, with the animation, etc. The problem is, all the things I have tried have no worked. Accelerate up, and then making custom gravity with accelerate down.. trying things like actually setting the gravity to something. Nothing is working, and I'm confused as to why.
Could someone explain?
Thanks everyone!
Matt
I have an actor standing till that has objects coming at it. You can touch anywhere on the screen and fly up, and when you let go you fly back down. I have everything set up to activate the fly, with the animation, etc. The problem is, all the things I have tried have no worked. Accelerate up, and then making custom gravity with accelerate down.. trying things like actually setting the gravity to something. Nothing is working, and I'm confused as to why.
Could someone explain?
Thanks everyone!
Matt
Best Answer
-
MotherHoose Posts: 2,456
@Philie
did you try Change Velocity Behavior?
Rule: when
Event: touch is pressed
-Change Velocity … Direction: for up … Speed: you want
Otherwise: Change Velocity … Direction for down
this persist till touch is released …
Direction 90 for up 270 for down
(though 45 for up and 315 for down is a nicer angleGlide for a flyer)MH
Answers
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx