mob
Move()
sleep(5)
..()
Problem description:
I am trying to make a small delay between movements so that the player cannot just zip around the map. My understanding is that this code will edit the pre-existing proc "Move", which is called whenever you hit one of the direction keys, right? So I am telling it to wait 0.5 seconds, and then do what it would normally do, via the parent proc. But in practice, holding down the arrow keys and hitting different directions causes the character to start teleporting around the map like crazy. I'm not quite sure why this is happening, so my question is twofold:
1) Why is this happening in this way?
2) What are some simple fixes, and why do they work?
You'd want something that prevents movement entirely.