how do i make a check point save in my game

bushidogamesbushidogames Member Posts: 23
edited November -1 in Working with GS (Mac)
how do i make a check point save in my game.
i want it when a level is over

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Here's how to unlock a level.

    Create a game attribute called game.LevelUnlocked (integer) and a game attribute called game.CurrentLevel (integer)

    In your menu button actor for level two (I assume level is always unlocked) have a rule that says:

    Rule- when game.LevelUnlocked is ≥ 2
    -----Rule - when touch is pressed
    --------change game.CurrentLevel to 2
    --------change scene to level 2

    Then at the very end of the level have an actor that is the "exit door" with the rule:

    Rule- when collides with main actor
    -------Rule - game.CurrentLevel = game.LevelUnlocked
    ---------change game.LevelUnlocked to game.LevelUnlocked+1
    ---------Save game.LevelUnlocked (be sure to load this attribute somewhere in the menu)
    ---------change scene to menu
Sign In or Register to comment.