How can I make my character scunch his legs down when he jumps or lands ?
bladeolson
Member Posts: 295
I have been able to get my guy to jump in my game but he is super stiff leg man. When I press the "jump" button, obviously I want him to bend his legs a bit with an animation then jump up. As he lands, I would like the reverse to happen. I was playing with "collide" but can't seem to find a way to make him animate on a collide. Thanks for any ideas....
Blade
Blade
Comments
And then create an attribute jump. (Integer should do the job).
Also in your jump rule (to make the actor jump), add a change attribute for (time taken to jump) seconds game.jump to game.jump+1.
Sorry that I cant be of much help.
If you have an iPhone you can see it in action here (it's free):
http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
Now this won't miraculously give your actor swinging arms or scrunching legs, but it works with simple actors such as squares, springs, balls, etc.
Although, after mentioning ball, you may want to add a third action of widening the actor by a few pixels too for a sort of splat effect before bounding upward.
Upon launching, you can then undo those actions and even add more (like elongate in the Y while in upward Y velocity or slanting/rotating one way upon launching and another way upon landing).
Upon landing, repeat.
Just some ideas to screw around with.
Tip: These types of actions work great for emulating button presses if you want to do more than just highlight during a button press. Saves the hassle of making a button press animation.