When it comes to velocity i just use the friction marble scripts and edit it abit. but I don't know how to reduce the length it takes for the sprite to stop.
Can anyone help?
Offline
With the marble, I'm pretty sure it uses this method of slowing
forever
set (xvelocity) to ((xvelocity) x (.95)
or something along those lines. In order to change the length, all you need to do is change the .95 to a slightly smaller number, until the amount of friction suits you.
Offline
[set (xVel) to ((xVel)*(.95))]
Change the .95 to .9 at greatest (or .99, .999, etc.) and at least, it should be .1 ( or .11, .111, .1111, etc.)
Offline