Author Topic: Help! With Live Count  (Read 6874 times)

tprime

  • Fanatic
  • ***
  • Posts: 395
    • View Profile
    • Email
Help! With Live Count
« 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

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Help! With Live Count
« Reply #1 on: 2007-12-15, 09:26:08 PM »
What exactly causes it to decrease, and what should cause it to stop decreasing?

tprime

  • Fanatic
  • ***
  • Posts: 395
    • View Profile
    • Email
Re: Help! With Live Count
« Reply #2 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: