OK! i have a problem. I'm making a game with a character you control and theres monsters that move when you do and when you run into a monster i have it so you lose 1 life.
(iLife --; )
i set iLife equal to 4 at the start.
if iLife is 3 i have an image show of 3 full hearts and one empty
if its 2 theres 2 empty
1 1 empty you get the point.
my problem is this. when i collide with a monster iLife keeps subtracting it doesnt pause at all so you go from full health to dead instantly i need some kind of delay after it subtracts one from iLife but the delay cant stop the program so Sleep(); wont work please help if you need code or clarification let me know.
Edited 5 Years Ago by mpike: n/a