Page 1 of 1

Platform game questions.

PostPosted: Mon Feb 21, 2005 10:44 pm
by heymelby
I'm currently working on a platformer to support my Comic Book (think mario on crack), So far my main problem is stopping my actor from using it's jump animation. I have it using a jumpanimation, when ever i hit the space bar, however it stays in the jumpanimation when it hits the ground. I tried making a {key down} to casue the animation change, and a {keyup} to change it back, and it worked only may actor can't jump at all. How should i be going about this. I baciallly want an animation for every action, i.e move left right, jump, crouch down, and for other key events like using items. suggestions? FYI i did the gravitey like in the tutorial that came with the demo.

PostPosted: Tue Feb 22, 2005 10:30 am
by ingsan
For JUMP, use this :
On AnimationFinish ("yourJumpAnimation") > ChangeAnimation("yourStandAnimation")

For LEFT/RIGHT Moves :
Use a KeyDown Event (with repeat YES) and change your animation.
Use a KeyUP Event to Change bak your animation to Stand.