Game Development Reference
In-Depth Information
Perform the following steps to end this sprite:
1.
Start with a when I receive <game_over> block.
2.
Enable the stop <other scripts in sprite> block.
The finished scripts are shown together in the following screenshot:
Objective complete - mini debriefing
In this secion, we created the code for the player sprite to iniialize when the game starts,
fall down, jump, and end the sprite.
Adding scripts to the Game Manager
sprite
In Project 4 , Space Age , we introduced the pracice of adding a Game Manager sprite to
handle the game iniiaion and terminaion, level up, as well as scoring. Keep the game logic
in a centralized locaion such as Game Manager, which makes it easier to conigure and
update the game. The Hunger Run starter project also includes a Game Manager sprite.
Prepare for lift off
Verify that the Game Manager has costumes named Starter Screen and Level One .
 
Search WWH ::




Custom Search