arrow_back Changing Looks with Code
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 effect” 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 of those changes by clicking on the “clear graphic effects” block.
Drag out a “change effect by” block to change the appearance of the “my sprite”.
In this example story, 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 “when flag clicked” 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 its original appearance whenever the code is run, place a “clear graphic effects” block just under the “when flag clicked” block.
Then test it.
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 use the "change effect by" to tell your story.
Now it’s your turn: Change the sprite’s appearance using the “change effect by” and “clear graphic effects” blocks.