ID:163502
 
When my character walks he starts to pick up speed. How do I stop that?
Let go of the Arrow Keys.
i dont know what happen to mine but my character in my game is so slow!! your lucky yours is fast...
In response to XskyflakezX
Use Movement Delay to slow your character down.

- Miran94
That's how it is, naturally.
If you really want to slow them down, you'll have to do something yourself, like adding something to delay them before they can continue moving.

mob
var
has_stepped // we need something to hold the data that tells us they've moved recently. so here, we'll put in a var for mobiles called 'has_stepped'.

Move()
if (has_stepped) // if they have moved recently
return // escape the procedure (don't move them)
if (..()) // ..() will call the previous definition of Move(). Move() will return 1 if they managed to move, 0 if they did not. Right now, the if check will check if they have managed to move. If so:
has_stepped = 1 // step has_stepped to 1
spawn(2) // wait .2 seconds (be sure to look up 'spawn' in the reference)
has_stepped = 0 // set has_stepped to 0.


This will stop them from gaining ridiculous speeds.