ID:1868484
 
(See the best response by Super Saiyan X.)
Problem description:

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...
Best response
It's probably better to control this via macros.
In response to Super Saiyan X
Super Saiyan X wrote:
It's probably better to control this via macros.

Hmm, never used them before outside of seeker - how would I use them with arrow keys?

macro
UP return "north"

?
if I recall, it's more like:
macro
North return ".north"
That's right, SSX. By default, the macros are defined as North+REP, so they repeat. Without the +REP, the macro will only fire once as soon as the key is pressed.