how do i make a check point save in my game
bushidogames
Member Posts: 23
how do i make a check point save in my game.
i want it when a level is over
i want it when a level is over
Comments
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