client/Move()
mob.Run()
..()
mob/proc/Run()
var/time = world.realtime
if(lastmove>time*10)
icon_state="run"
move_delay=3
lastmove += time
spawn(14)
lastmove-=time
if(lastmove<time*8)
icon_state=""
move_delay=7
The game sort of freezes for like a split second when I change direction, so there has to be a better way.