Change actor image when jumping...?

As_Of_LatteAs_Of_Latte Member, BASIC Posts: 343

Hey guys,

I've been trying to solve this for a few weeks now and I just can't seem to figure it out.

I have an actor and when I click he jumps. Once he has hit the peak height of his jump, I want his image to change (as if he is falling) on his way back down. And once he touches the ground, he returns back to his original starting image.

I'm sure this is a simple fix, but any help is greatly appreciated! :)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2015

    I'd check the Y velocity of the actor to see if it's negative. In this demo, I used <-5 as a threshold because <0 didn't work well.

    Hold space bar to jump, release to fall.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.