Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gdevelop5:tutorials:platform-game:7-checkpoints [2019/12/27 11:45]
4ian
gdevelop5:tutorials:platform-game:7-checkpoints [2019/12/27 12:07] (current)
4ian
Line 1: Line 1:
 # Add checkpoints to your game # Add checkpoints to your game
 +
 +<​note>​This tutorial is part of the [[gdevelop5:​tutorials:​platform-game:​start|]] tutorial, but you can also re-use it for any other game where you have checkpoints!</​note>​
  
 We finished the previous tutorial by deleting the player when it collides with the enemy. ​ This is not the way that it works in most games. Generally, instead of deleting the player, a game will have a "​checkpoint"​. The "​checkpoint"​ saves  the state of the game and the state of the player into  variables. Then, if the player dies, the game and/or player restarts from the "​checkpoint"​. We finished the previous tutorial by deleting the player when it collides with the enemy. ​ This is not the way that it works in most games. Generally, instead of deleting the player, a game will have a "​checkpoint"​. The "​checkpoint"​ saves  the state of the game and the state of the player into  variables. Then, if the player dies, the game and/or player restarts from the "​checkpoint"​.