Plain and Simple: Is there anyway to make it so the viewer playing the game can’t hold a button down?
For Example: I’m making a game where you shoot until you run out of bullets, then just drop the gun. So when you press control, it shoots, plus takes off one from the counter.
BUT
It only works if you lightly tap control, because If you hold it down, it goes screwy…
You’ll have to have two key indicators then… The first key indicator needs to have some sort of… OnKeyDown even and the other is OnKeyUp… After that you figure out which key it is…
The basics behind this is just setting up a variable… If keyisdown set trigger runLeft = TRUE;
Then somewhere in the main loop, going fast you if… if (runLeft == TRUE) move character._x = character._x - 5;
If keyisup… then just set the trigger equal to false… thus stopping him…