playMaker

Author Topic: Creating a Mario-style life counter  (Read 1517 times)

Seiryu33

  • Full Member
  • ***
  • Posts: 133
Creating a Mario-style life counter
« on: March 15, 2015, 11:33:13 PM »
My problem is a bit complex. Basically my project uses a 1-up system similar to Mario's but loses lives when the healthbar depletes or the player falls into a pit. I've gotten as far as setting up the player's death sequence but I'm a little unclear about how to setup a life counter.  What's the most effective way to create one or any counter for that matter?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7622
    • jinxtergames
Re: Creating a Mario-style life counter
« Reply #1 on: March 16, 2015, 02:14:37 AM »
a simple int add / int deduct? and check if that int is 0 for game over

if you have a "grow" mushroom like thing and can be damaged 2x you can also do that with an int