Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
In this video,
you will paint your graffiti on different backgrounds
just like a real graffiti artist.
When you press certain keys
the backdrop will switch.
First, add a few new backgrounds.
Click on the stage, then choose a few new backgrounds
from the backgrounds menu.
Pick several and be creative.
It could be fun to spray paint in space for example.
Next, go to the scripts area
then add some key press events.
This example uses the number keys for key press events.
For example, when the two key is pressed
the background switches to the chalkboard.
For each background, add a key press event
and a switchback drop to block.
You should have the same number of block stacks
as you do backdrops.
Make sure to test each block stack
to see that it works how you expect.
Also, set to the beginning backdrop
by using a when flagged clicked event.
Now, let the users know they can change the background.
Add a talking sprite to let them know
about this fun feature.
The sprite will ask the user
what background do they want to paint
and instruct them how to change the background.
Add the when flag is clicked block to the script area
along with some say blocks.
Write directions that tell users
how to change the background.
Now it's your turn.
Create several new backdrops.
Add key press events to change the backdrop
using the switch backdrop to block.
And finally, add a talking sprite that tells
the user how to change the backdrop.