Sizing and Placing Our Checkpoint Trigger

The size and placement of a trigger volume are extremely important. You want to be sure that the trigger is going to fulfill its purpose without interfering with other elements of your game. Given that this is a checkpoint and we don’t want players to miss it, the size of the volume becomes increasingly important. We don’t have to worry about players walking beside it in 2D, but we do have to worry about them finding a way to accidentally jump over it.

We created the basic Checkpoint trigger GameObject earlier, but it needs to be adjusted a bit in order to be useful to us:

1. Select the Checkpoint GameObject.

2. Drag it under the Scene1 GameObject in the Hierarchy.

3. Set the icon of the Checkpoint GameObject ...

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.