I need to make a jumping character and I would like it if it could jump in a parabolic arc. I'm not sure how to make it follow that path. Any ideas?
Offline
You need to use y-velocity. Here is a tutorial I made on basic movement. Here is the basic y-velocity:
forever if<key [up arrow] pressed?> set [y-velocity] to (5) end if<not <touching [ground]?>> change [y-velocity] by (-.2) else set [y-velocity] to (0) end change y by (y-velocity) endOf course that script is far from perfect (you'll probably end up stuck in the ground), so if you want to see usable script, I'd recommend clicking on the link above.
Last edited by MoreGamesNow (2012-03-05 16:43:02)
Offline