Right now this game has a plain, white backdrop. In this add-on, you’ll program the backdropto change each time the player sprite reaches the finish line.
First, you need to add more backdrops to your project. Click the “choose new backdropfrom library” button, and choose a few backdrops for your project.
This example project will use water-based themes.
Now that you’ve added the backdrops to your program,you need to program the computer to change them when the player sprite reachesthe finish line. Click your player sprite, select the looksmenu, and drag out a “switch backdrop to”. Click the dropdown menu and select “nextbackdrop” . Click this a few times, and you’ll see that it changes the backdropeach time.
This code checks if the player sprite touches the finish line.
Add the “switch backdrop to next backdrop” block to the inside of the if block. Thatwill make the backdrop change when the sprite hits the finish line.
Try it! Great, when the player touches the finish line, the backdrops change.
Choose an Add-On
Finish Line Cheer
Program a sound to play if the player touches the finish line.
Play with a Friend Option 1
Add a second player to the game.
Play with a Friend option 2
Challenge a friend by having them control the enemies.
Program the finish line to get smaller as the player scores more points.
Create a sprite that, when touched, gives the player extra points.
Changing Level Design
Program the backdrop to change every time the player scores 5 points.