Computer Science Canada Help with Input.KeyDown not detecting held keys |
Author: | That Asian Guy [ Tue Nov 27, 2007 7:42 pm ] | ||
Post subject: | Help with Input.KeyDown not detecting held keys | ||
how do i get Turing to not detect held keys For example:
holding down left will make both boxes disappear how do i change it so tht they will disappear at each press? |
Author: | Zampano [ Tue Nov 27, 2007 8:23 pm ] |
Post subject: | Re: Help with Input.KeyDown not detecting held keys |
The loop passes far too quickly to make a difference to a human viewer. Try putting a delay if a button is pressed. |
Author: | Saad [ Tue Nov 27, 2007 8:23 pm ] |
Post subject: | RE:Help with Input.KeyDown not detecting held keys |
Its still not the error, the error is that you should set it to false when the key isn't pressed |
Author: | That Asian Guy [ Tue Nov 27, 2007 8:31 pm ] |
Post subject: | RE:Help with Input.KeyDown not detecting held keys |
oops its supposed to be set to false, ignore that what im trying to get to is how do i enter code so that the two boxes will be wiped after the left arrow key is pressed twice right now, holding down the left arrow will wipe out both (btw i dont know why i drew 3 boxes, ignore that too) |
Author: | Saad [ Tue Nov 27, 2007 8:49 pm ] |
Post subject: | RE:Help with Input.KeyDown not detecting held keys |
There is an error in your code in which you don't give the variables an initial value but after fixing it. Although I still don't see the boxes getting wiped out after setting them both to false |
Author: | Jestar [ Tue Nov 27, 2007 8:59 pm ] | ||
Post subject: | Re: Help with Input.KeyDown not detecting held keys | ||
I think this is what you mean....if not, my bad ![]()
|
Author: | That Asian Guy [ Sun Dec 02, 2007 4:18 pm ] |
Post subject: | RE:Help with Input.KeyDown not detecting held keys |
hasch... thanks thats the command i needed |