Using Checkpoints with Respawn

We can place checkpoints throughout our game level to remember places that the player has been. Let’s make use of that information to create a respawn system that will place the player back at the nearest activated checkpoint after they fall into a pit.

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.