Please can someone post me some simple scripts to create gravity so that it will move smoothly and not jittery. (if impossible to be simple, don't mind too much if theres a lot of blocks or scripts as long as I can understand it or you explain it to me).
Offline
One thing that you can do is make a script in a forever loop saying that if your character is not touching the color of the ground, then you can change the y position by a number (I recommend -3). If you want an example then you can look at my project Mirror Remade.
Offline
when gf clicked forever if <not <touching color [#000000]?>> change y by [-10]This is a script for smooth gravity, if you are not touching black you will fall by -10 on the Y axis
Last edited by daniel_j (2012-06-30 02:27:12)
Offline
daniel_j wrote:
when gf clicked forever if <not <touching color [#000000]?>> change y by [-10]This is a script for smooth gravity, if you are not touching black you will fall by -10 on the Y axis
Problem is if the ground is smaller than 10px? Or what if the OP wanted a jump script as well?
Offline
fg123 wrote:
daniel_j wrote:
when gf clicked forever if <not <touching color [#000000]?>> change y by [-10]This is a script for smooth gravity, if you are not touching black you will fall by -10 on the Y axisProblem is if the ground is smaller than 10px? Or what if the OP wanted a jump script as well?
Good point, I guess it could be transformed into the script xD
Offline