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

Tony M

  • Fanatic
  • ***
  • Posts: 395
  • Games Developed: 5
    • MSN Messenger - tonyxna@live.com
    • View Profile
    • Who Cares? Arts
    • 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
~ Current Projects ~
Websites

Like the Facebook page: https://www.facebook.com/WhoCaresArts

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2738
    • 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?

Tony M

  • Fanatic
  • ***
  • Posts: 395
  • Games Developed: 5
    • MSN Messenger - tonyxna@live.com
    • View Profile
    • Who Cares? Arts
    • 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:
~ Current Projects ~
Websites

Like the Facebook page: https://www.facebook.com/WhoCaresArts