Graphic Effects Blocks
-
Prerequisite
What is a Graphic Effect?
A Graphic Effect changes the look of an object. Let’s go through each type of effect below:
Color Effect
This effect changes the color of a sprite. You can set the color effect between 0 and 200. Below are the results at some example colors.
Fisheye Effect
This effect makes a sprite look like you are seeing it through a magnifying glass. Below you can see the fisheye effect at different values.
Whirl Effect
This effect twists a sprite from its center, making it look like a whirlpool. Here is what the whirl effect looks like on a sprite.
Pixelate Effect
This effect makes a sprite look like it is made up of small colored boxes, instead of a smooth shape or line. Here is what a pixelated sprite looks like.
Mosaic Effect
This effect shows a sprite as multiple smaller copies of itself. Here you can see how the mosaic effect increases by increasing the value.
Brightness Effect
This effect changes the brightness level of a sprite by changing its colors to brighter shades. The brightness effect has a minimum value of “0” and maximum value of “100”.
Ghost Effect
This effect makes a sprite transparent (like a ghost). You can set the ghost effect between 0 and 100.
Key Blocks
There are three stack blocks in the looks category which are used to change or remove the graphic effects of a sprite (or stage). These are “Change () effect by ()”, “Set () effect to ()” and “Clear graphic effects” blocks.
How do these blocks work?
Change () effect by () Block
This block changes the graphic effect according to the value typed in the input. You can click on the drop-down menu to select the name of the effect which you want to change.
Note: Every time you click on the change () effect block, it will change the graphic effect according to the input value.
Set () effect to () Block
This block sets the graphic effect value to your input. You can click on the drop-down menu to select the graphic effect.
Note: If the graphic effect value is already the same as the input number, nothing will change after playing the block.
Clear graphic effects Block
This block clears or removes all the graphic effects that are applied to a sprite (or stage).
Animation
You can use the “Brightness” effect to make a sprite look like it is blinking a light. Here is how you can make this animation;
-
Wow, this deserves a B U M P! I never knew what some of these could do!