Ok guys, why does the following code run when the keyboard isn't even touched?
Code:if (Key.isDown(Key.SHIFT)) {
trace("drop bomb");
dropBomb(ob);
}
Printable View
Ok guys, why does the following code run when the keyboard isn't even touched?
Code:if (Key.isDown(Key.SHIFT)) {
trace("drop bomb");
dropBomb(ob);
}
Don't let the guinea pig run over the keyboard.
er...is caps lock on? doubt that does anything though
check to see you dont have that code elsewhere, make sure its in that if statement only
other than that, no clue (is your keyboard sticking?) though i doubt its a keyboard problem
the code is nowhere else and i put the trace in there to make sure it was being triggered from that point anyway. no caps and no keyboard problems. also tried changing it to a different key but got the same problem. very strange.
Have you tried 'on keypress' instead of 'if key is down' to see if the bug still remains?
have you put it on a onClipEvent or function??
xtrava - I haven't tried the on keypress approach yet as it's a mc rather than a button but I guess I could try converting it later.
Xareox - It's in a function