Something like KeyReleased function?

Started by AaronLLF, December 23, 2010, 16:37:28

Previous topic - Next topic

AaronLLF

In a new game I'm making, I'm testing my health system out by using "F" to give 1 (out of 20 total) damage points. The problem is, You die practically immediately, because it's "isKeyDown", which repeats the process. So, I'll need a simple function similar to a KeyReleased, or KeyPressed type thing. BTW, if you need, the name of the health functions are:
playerGetDamage(int damage)
checkDeath()
playerDie()


kappa