Well, Im trying to make a platform game, but I have a problem.
The player has a health value, and whenever it touches some spikes, it subtracts x number from it, the problem is, that doesnt happen every tick. What do I mean? Well, for example, imagine the player has 100 health, and if he touches a spike, then it subtracts 10 from that health value, then the player has 1 second of invincibility, when that time is over, if the player is still on top of the spikes, it doesnt subtract another 10 health points from the health value, in fact, the player needs to go off the spikes and then touch them again...
Hope you understand, I know my english isnt very good