Quote:
Originally Posted by Chompy
Why are you using a timeout though?
PHP Code:
function onKeyPressed(code, key) {
switch (lowercase(key)) {
case "s":
player.chat = "S";
break;
case "n":
player.chat = "N";
break;
}
}
|
Because you can't use that to detect when a key is held down.