In this add-on, you will animate
a character's overwhelming emotion with an exaggerated tear.
This effect is common in anime,
a Japanese style of animation.
To start, broadcast a message to make the tear effect start.
In this example, the character says,
"You're almost too awesome!" before shedding a tear.
Add a message that will prompt a tear
in your character sprite.
Next, add a broadcast block,
and name the message something like tear.
Program the tear to receive this message,
and glide down the character's face, then disappear.
Select the tear sprite.
Add a when I receive message,
and select tear from the drop down.
Click on the show block to show the tear.
Then, add a show block under the when I receive block.
Drag the tear to a starting spot on the stage,
and add a go to xy block.
Drag the tear to where it will finish falling,
and add a glide block.
Click the block stack to test.
Nice.
Next, program the tear to slowly disappear.
At the bottom of the block stack, add a repeat loop.
Inside this, add a change effect block,
and select ghost from the drop down menu.
Click to test.
Then click again.
The tear doesn't show up at all.
That's because the ghost effect is still working
when the program starts again.
To fix this, add a clear graphic effects block
and a when flag clicked block
to clear the ghost effect when the program starts.
Click the green flag stack,
then the when I receive block stack to test.
Tinker with the value in the change effect block.
This example uses ten.
Great.
Finally, program the tear to hide when the flag is clicked.
Add a hide block.
Awesome, you created an exaggerated tear effect
that communicates your character's strong emotion.
Now it's your turn.
Broadcast a message to start the tear effect.
Program the tear sprite to receive this message,
then glide down the character's face and disappear.
Finally, clear the graphic effects,
and hide the sprite when the flag is clicked.