Flying up when pressing, falling down when letting go..

PhiliePhilie PRO Posts: 240
edited May 2012 in Working with GS (Mac)
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

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    @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)

    image MH

Answers

Sign In or Register to comment.