Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: tprime on 2007-12-15, 07:20:07 PM

Title: Help! With Live Count
Post by: tprime on 2007-12-15, 07:20:07 PM
Tried to make the Subject wity. Well any way, when I add a live function to my game the count decreases by two, instead of one when my guy dies. Does anyone know what's wrong. Thank you.  ;D
Title: Re: Help! With Live Count
Post by: bluemonkmn on 2007-12-15, 09:26:08 PM
What exactly causes it to decrease, and what should cause it to stop decreasing?
Title: Re: Help! With Live Count
Post by: tprime on 2007-12-22, 01:38:01 PM
I'm sorry for not coming on here for a long time, I've been busy. When you either fall in a pit, or lose all health, you lose a life. But I solved the problem. Turns out that when the player fell in a pit, it lost life due to it functioning with a function that decreases health. So everytime it fell it must have decreased 2 lives instead of one. I then fixed it using a different function that didn't rely on the other one. I realized this when I intentionally made the player get die by the enemy. It only lost one life.  :crazy: A lot of words. :laugh: