Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
In this add-on, you will program the sprite to change its profile picture.
If you click on the Profile image sprite, you will see different costumes that came
with the starter project.
As you click through the different costumes, the sprite on your starter project also changes
It doesn’t make sense for the user to click through the costumes to change them, but you
can program this to happen using a keypress event.
To start, drag out a "next costume" block from the Looks menu.
Click it to test it out.
This block changes the look of the sprite by changing its costume.
To keep the user from having to keep clicking the block to change the costume, add a "when
space key pressed" event.
Click the black triangle to change the keypress event.
This example uses the "right arrow" key, but use any event that works for your program.
When you test it by clicking the right arrow key, the sprite changes its costume!
Users are now able to customize the profile page by changing the look of the profile sprite.
Now, it’s your turn.
Click on the Profile sprite, and program it to change its look using the "next costume"
block and the "when key pressed" event.
If you need help, ask a neighbor or put up your sticky to get the attention of your CS