Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Change of Scene

Transcript

In this add-on, you'll add a scene to the end of your story and stop your character's walk.

Click the stage and then the Backdrops tab to see the additional backdrops or scenes included in the starter project.

You can also choose a backdrop from the Scratch library, you can draw your own backdrop or upload one from the computer.

Decide on a backdrop for your next scene.

To add the backdrop to the end of your story click on the Character sprite, click on the Looks menu, then drag the switch backdrop to block to the end of your block stack.

Choose the backdrop you will use from the drop-down menu in the switch backdrop block.

Try it out.

Great, the scene changed but the character is still moving up and down like it's walking and the table from the store scene still displays.

To hide the table, click on the table sprite, click on the Events menu and drag out a when I receive block.

In the drop-down menu choose New message.

Enter something descriptive like Next scene.

From the Looks menu, add a hide block then click the block stack to test it.

Great, the table disappears.

Click on the Character sprite again and the Events menu and drag a broadcast block into your code stack.

Choose the message you just added from the drop-down.

In this example, that's Next scene.

Now when the broadcast block is run, the Next scene message will broadcast and the table will hide.

Next, to stop the character from moving up and down like it is walking, click the Control menu and drag out a stop block.

From the drop-down, choose other scripts in this sprite.

This will stop any other code block stacks, called scripts, from running.

Click it to try it out.

Great, the character stops moving.

Connect the stop block to the end of your stack.

Try the whole project again to look for unexpected problems.

First, the story is told in the store.

Then the backdrop switches, the next scene backdrop is broadcast which tells the table sprite to hide and finally, the other code in the character sprite is stopped so the character stops walking.

Great.

Of course, the character also needs to react to the new scene.

What will your character do or say next?

Where will your story go?

Now it's your turn.

Use the switch backdrop block to change the scene, broadcast a message to the table to hide, then use a stop block to stop your character's walk.

Choose an Add-On
Add Sound
Add sounds to your story.
Walk in the Park
Add another object for your character to encounter in your story.
Change of Scene
Add a scene to the end of your story, and stop your character's walk.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!