I'm trying to make it so that even if I hold down an arrow key, it only calls the move proc once until the key is let go of, rather than repeating it indefinitely. Any ideas on how to go about this?
[Edit] As of right now, I have something like this:
client
Move(a,b,c,d)
if(held==0)
if(b==1)
mob.north()
world<<"n"
if(b==4)
mob.east()
world<<"e"
if(b==8)
mob.west()
world<<"w"
if(b==2)
mob.south()
world<<"s"
held++
spawn(0.8)
held--
Which works alright, but it won't register if I press the arrow key too quickly, which is less than ideal...