Lives And Reseting Scene?

EminemEminem Member Posts: 667
edited November -1 in Working with GS (Mac)
i have 3 lives set each life will become decreased but when i the 3 images i have set go to 0 i have put it to reset scene but then there are no lives located on the top

is there someway i can do this with out reseting game?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Have a look at my profile - the most recent example I have up there is of 'counting numbers'.

    Maybe take a look at that and apply it to your game.

    Instead of adding 1 to the 'count' variable, you'd subtract 1 from your 'Lives' Variable. Then when lives = 0 go to game over screen or title screen or whatever.

    On your 'start' button, or where you've put the reset currently, change the attribute 'lives' to 3.

    Hope that helps,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • EminemEminem Member Posts: 667
    Thx for ur response actually my game has Many levels and each level uses the same integer so means if I have two lives left even when u pass the level u will have 2 that's how I set up my game , but when all 3 lives are gone I set up a reset scene and I wanted the lives to go back to 3 but remain on the level u are currently on I have set everything up but the lives dissapear,

    I used the tutorial in the how to section to set up the lives
  • EminemEminem Member Posts: 667
    Can someone help?
Sign In or Register to comment.