Week 8: Multiple lives and respawning
Step 1: Player lives Part 1
Most games give the player multiple attempts to try to beat a level, usually by displaying health or lives. In this example we'll give the player 4 hearts that they can see, and each heart gives them an extra life. That way when they die they don't have to restart the whole game.
Step 2: Player lives Part 2
Step 3: Player lives Part 3
Step 4: Player lives Part 4
Step 5: Player lives Part 5
Step 6: Losing lives and respawning Part 1
Now let's make these hearts do something useful. We'll lose a heart instead of dying, so we'll make the last heart disappear when we lose a life.
Step 7: Losing lives and respawning Part 2
Step 8: Losing lives and respawning Part 3
Step 9: Adding lives Part 1
How about a collectable object that gives you another life?
Step 10: Adding lives Part 2
Step 11: Checkpoints Part 1
Many games have checkpoints which save your position in the game, so that when you die you can respawn back on the checkpoint. This allows you to create games with multiple levels that will then send you back to the last level you saved a checkpoint on. This means that you can make your games much more challenging, while also being more forgiving depending on the amount of checkpoints you place.
Step 12: Checkpoints Part 2
Step 13: Checkpoints Part 3
Step 14: Checkpoints Part 4
Step 15: Checkpoints Part 5
Step 16: Checkpoints Part 6