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 Changing Looks with Code

Transcript

This video will introduce ways to change the sprites looks.

Click on the looks menu to check out many different ways you can change the appearance of the sprite.

Click the change effects block in the blocks palette to test it.

You can change the color, apply a fisheye, whirl the sprite, pixelate the sprite to make it blurry, turn the sprite into a mosaic, make it brighter, and even make it transparent.

Awesome, you can easily undo all those changes, by clicking on the clear graphics effects block.

Drag out a change effect by block to change the appearance of the my sprite.

In this example, the my sprite turns green, this example selects color from the menu, but you can choose any effect that fits your story.

Tinker with the value of the change effect by block until you like the outcome.

Add a one flag quick block to the top of the code stack to make it easy for other people to run your code.

Test it out.

Wait, that's not right for this story, the sprite shouldn't start that color.

To reset the sprite to it's original appearance whenever the code is run, place a clear graphic effects block just under the when flagged quick block.

Then test it.

Great, here are two other examples of using the change effect by block to tell a story.

This story uses the whirl effect to show dancing, this story uses the pixelate effect to show confusion.

Be creative and you can use the change effect by block to tell your story.

Now it's your turn, change the sprites appearance using the change effects by and clear graphic effects blocks.

Choose an Add-On
Changing Backdrops and Costumes
Add different scenes to your story.
Changing Looks with Code
Learn what the "looks" blocks can do.
Move Around the Stage
Discover ways to make sprites move.
Animate
Animate sprites by creating new costumes.
Secret Password
Make a password to protect your story.
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!