A Jumping Ball as Main Character
millerbrother1
Member Posts: 108
I'm making a jumping ball as my main character for a small platform game. Instead of walking across the screen he "hops" and I want the artwork to be smooth "squash & stretch" style animation. I can get my character to "Jump" but I want the artwork to swap out a different points in the arc of motion. See the image on the url below for an example of what I'm talking about.
http://i34.tinypic.com/25z5yll.jpg
My question is, how do I swap out images mid jump?
Chris
http://i34.tinypic.com/25z5yll.jpg
My question is, how do I swap out images mid jump?
Chris
Comments
I think you could have an animation starting when the jump start (so, when Motion.Y is greater than 0), an animation that doesn't loop and that doesn't restore the actor image (or that it restore, depends on what actor image you have).
This animation should have that "bouncy" effect at the start, and end with the simple ball. Then, when the ball start falling (when motion.Y is less than 0), have another animation effect, probably the same one but inverted. It start with the ball, and it ends with the squished ball.
That waaay it should work. But it really depends on the height of the jump. If the jump is too big, in the falling it would become squishy in mid air.
If instead you want just a "squishy" effect every time you jump or every time the ball touch the ground after a jump, make the start animation jump as already suggested, and leave the ball as it is in the falling. When the ball touch the ground after a jump (if you have a jump trigger, like a boolean attribute, this should work), go with animation "squishy".
hope this helps
I think you were on the right track. I found this post as well. Will try it now.
http://gamesalad.com/forums/topic.php?id=6825
http://tinypic.com/r/x5bex3/4
So, my question is...can I accomplish this with some kind of acceleration force on the character when arrows are pressed? I still want the image swap for the "bouncyness" factor.
Thanks for your advice. I'm a newbie so I'm
-Will
-chris