Reset Game/Save Record

Hello.
I am in a new projet with my classes. But, as already happen in our first projet in 2013, "the reset game and save points/record".
The idea, is when "lives=0" or "live <1", the game reset and show the point of the game and the record.

Best regards.

Comments

  • BonepileGamesBonepileGames Member Posts: 194
    edited March 2014

    I'd suggest you to reset the scene and the attributes in it rather than resetting the whole game.

    Rule

    If game.Lives < 1

    Change game.Gameover to 1

    If game.Gameover = 1

    Interpolate X or Y of the gameover actor to a desired part of the screen (an actor whose role is to show REPLAY button and Score achieved during the last game and the Highscore)

    If touch is pressed (replay button within gameover actor)

    change game.gameover to 0

    change all attributes to their initial value (e.g lives to 3, score to 0, etc.)

    reset scene

    I may create a demo for you if you are having troubles in doing it.

    Good luck

  • RuddvandolphRuddvandolph Member Posts: 19

    @BonepileGames thanks for the help, but i will accept the demo.

    The game, is an actor that collect coins. And if i touch in the enemy he lost lives. The actor will have four lives.

    I will send you a printscreen ;)

    https://www.dropbox.com/s/4uuhu31kw0pxdsl/Captura de tela 2014-03-12 17.45.58.png

    Best regards

  • webguy12webguy12 Member Posts: 9

    Could I get a demo too. Looking for something like this too :)

Sign In or Register to comment.