ID:314956
 
(See the best response by Kaiochao.)
Title states it all. Any idea how to slow players down?

I tried a library that had something along the lines of:

mob/var
delay = 0
mob
Move()
sleep(delay)
..()

But, that gave me some weird bug that caused the player to seemingly teleport from tile to tile in an odd fashion.

e.g.: to a tile one space to the west, and 2 spaces north, while moving north before returning to the right spot.
Best response
1. Use pixel movement.
mob
// Lower = Slower.
step_size = 4


2. What you're more likely looking for is something to prevent movement until a timer has finished:
mob
var last_move_time

// Higher = Slower.
var move_delay = 5
Move()
// if enough time has passed
if(world.time > last_move_time + move_delay)
// attempt the move
. = ..()
if(.)
// reset the delay if the move is successful
last_move_time = world.time
In response to Kaiochao
Well, my little project was specifically designed to not use pixel movement, so option 1 was a no go, haha. However, option 2 did the trick.

Thanks for the help~