PDA

View Full Version : help with actionscripting a jumping action



enterspacecapsu
May 28th, 2004, 11:42 PM
hey
im been trying to make a stationary movie clip do a jump move to the top, slowing down, and then comming back down (like a ball being thrown vertically up) within a given number of frames, ie 10 frames.

Also i would want to add a horizontal vector quantity whereby if a key is pressed (ie left) then it would move horizontally left while still in jump mode.

Does an actionscript like this exist?? if so can someone please post it here?
Thanks heaps in advance :pleased: :pleased:

pom
May 30th, 2004, 10:16 AM
Robert Penner's frame-dependant easing equations would be good for you : www.robertpenner.com

Otherwise there's a gravity tutorial here :)

Prophet
May 30th, 2004, 10:22 AM
or you can cheat and download a component to do it for you ;)
http://www.flashcomponents.net/
theres a hole bunch of movements there sumwer
lol

Prophet.