View Single Post
  #1  
Old 02-26-2011, 07:12 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Holding a keydown...

When a keydown() is used in a timeout it can just be held and it will do the action for you. How do I eliminate this? Just in case I'm not clear since I'm half-delusional from sleep and am not even reading while I type, here's an example:

PHP Code:
//#CLIENTSIDE

function onTimeOut() {
  if ( 
keyDown) ) {
    
foobar;
  }
  
setTimer0.05 );

So, yeah. I just want to know how to make so the player must tap the key to get repeated use out of it.
Reply With Quote