Pages: 1
Topic closed
Try something like this for gravity...
The <if touching color []> should be replaced by the colour of your platforms
For jump something simple like
should work. If you use the gravity script with this script your sprite should hopefully fall back to the ground after jumping
Last edited by jji7skyline (2011-07-08 01:15:38)
Offline
Here's a simple project showing implementing gravity; Gravity Guy.
Offline
i learned it the hard way, but if you want to know, i'll tell you... you need a variable called gravity. you know variables, right? anyways, you make it so when flag clicked, forever: if touching color (ground) set gravity to zero, else change gravity by negative 0.2. at the end of the script, change y by gravity. this will make him fall faster the longer he is in the air, and stop when he hits ground.
Offline
Topic closed
Pages: 1