I'm using keydown2 for several things on Utopia. One for guns system, one for melee.
Gun system checks 's', melee checks 'n'.
After a while (for some reason it seems to do this more on Macintosh computer, or when idling), the checks just stop working. Reconnecting does not help. You have to close Graal and open it back up.
This is what we have for one of them:
PHP Code:
if ( keydown2( getkeycode( "s" ), false ) || keydown2( getkeycode( "n" ), false ) )
Funny thing is that when "S" fails, "N" fails.
Like I said, it might not happen more on Macs, but it seems to me like it. I know it DOES happen on Windows though.
What am I doing wrong? Is it a glitch with something else? Thanks!