19: Platform Playhouse (Part 04)
Learning Target
- Add a checkpoint to a level
- Return player to checkpoint on death
Resources
If you tend to finish your assignments early, I recommend finding assets that are more to your desired theme.
| Flag Variation A | Flag Variation B |
![]() ![]() ![]() |
![]() ![]() ![]() |
Instructions
Step 1:
Open your game from the prior assignment. Save it with a new name (e.g. "platform playhouse 4").
This will serve as a backup and allow you to return to a working copy of your game if something goes wrong.
Step 2:
Create a checkpoint object.
Tutorial: Add Checkpoints to the Game
Then, save the player's location so you can return them to that point.
Tutorial: Save Player Coordinates
Save your game now!
Step 3:
When the player dies after colliding with an enemy, we'll want to send the player back to the last checkpoint.
Tutorial: Send the Player Back
If the player hasn't reached a checkpoint, our prior code will cause some issues. We'll want to set a default checkpoint for the beginning of the level.
Tutorial: The Default Player Coordinates
Save your game now!
Step 4:
When the teacher isn't helping others, show me your completed work and receive a verification code to enter in Canvas.
Grading
| Your submission... | Your grade... |
|---|---|
|
Extended
|
A+ |
|
Exceptional
|
A |
|
Good
|
B |
|
Reasonable
|
C |
|
Needs Improvement
|
D |
|
Insufficient
|
F |
| Scores may be rounded to the nearest whole number. | |





