Keys Unresponsive at Random Times!!!
Blitz3D Forums/Blitz3D Beginners Area/Keys Unresponsive at Random Times!!!
| ||
This is very strange. I have a spaceshooter, and you use the left and right keys to move, but at random times during the game, nothing happens when you press those keys. There is no reason within my code for this. I've tried it on two computers and it does the same thing. I used FlushKeys (but I'm not sure if that would have done anything anyways) All that's happening is it callse CheckKey() in the game loop and there is nothing that would change that. The shoot button still works and stuff and it's in the same function. Any reason this would happen? |
| ||
post the checkkey() function! Andy |
| ||
Yep, I ran a test to see if the key was being pressed and it definately knows I'm pressing the key, it's just not moving the ship. |
| ||
Oh, I fixed it myself! Turns out it wasn't so random after all. When I restarted the game after I died, I deleted the player, then made a new player, but forgot to set the speed of the player, therefore, the speed was 0. :) I hate it when I fix my own problem and make a useless post... |