Thread: keydown()
View Single Post
  #16  
Old 11-24-2002, 01:34 AM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
Quote:
Originally posted by Ningnong
I hate .05's because you have to just "touch" the key, and you find your self getting your tap right before it works (like its on and of with one normal press)..
you can use keypressed also.. but ning, you can also go like this if you wanna use timeout=0.05;
NPC Code:

if (timeout) {
if (keydown(0) && this.k0=0) {
this.k0=1;
playery-=.1;
} elseif (!keydown(0) && this.k0=1) {this.k0=0;}
timeout=0.05;
}



that would get rid of the "touch" and make it for everytime that you press it... or somthing like that =o
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote