|
-
Senior Member
[HELP] [MX04] Phantom key presses
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);
}
Last edited by mandissected; 11-16-2006 at 06:22 PM.
-
Senior Member
Don't let the guinea pig run over the keyboard.
-
Please, Call Me Bob
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
-
Senior Member
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?
-
Banned
have you put it on a onClipEvent or function??
-
Senior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|