Sometimes, animators use a smokey effect to show that a character is really upset.
In this add-on, you will program that effect for your monster.
To start, click “paint new sprite,” and draw a gray circle.
Next, click back to the scripts editor.
Drag the gray sprite to where you want it to appear on the monster.
Program the gray dot to move and fade.
Add a “move” block and a “change effect” block.
The gray dot shouldn’t move very far from the monster, so change the value in the “move” block to a smaller number - this example uses 2.
Next, to fade the dot, change the dropdown in the “change effect” block to “ghost.”
This adds a fading effect.
You may not want the gray dot to disappear too quickly, so change the value in the “change effect” block to something that works for your program.
This example uses 2.
To make this happen multiple times, add a “repeat” loop around the “move” and “change effect” blocks, and tinker with the number in the block.
This example uses “40” in the repeat loop.
Test it out.
Click the “clear graphic effects” block to make the sprite visible again.
To make a smokey look, make multiple gray dots on the stage that move in multiple directions.
One way to do this is to clone the gray dot.
Add a “create clone of myself” block, and place a repeat loop around it.
Then, add a “when I start as a clone” block to the top of the first “repeat” loop.
The dots move and fade.
To delete the clones so the smoke fades away, add a “delete this clone” block under the first “repeat” loop.
Smoke gets larger when it spreads, so add a “change size” block under the “change effect” block to give it this effect as it fades.
This example uses a small number, like 3, in the “change size” block.
Use what works best for your program.
To make the smoke go in a random direction upwards instead of to the right, Add a “point in direction” block from the motion menu under the “when I start as a clone” block.
Then, add a “pick random” block to set the limits of the smoke.
Tinker with the values in this block.
Pointing in a direction of zero makes the smoke go up.
It’s helpful to have a negative number in one value space and the positive of the same number in the other, like negative and positive 20.
Finally, add a “hide” block above the “repeat and create clone of myself” block to hide the gray circle, then add a “show” block above the “when I start as a clone” block, so you can see the smoke effect.
Use “broadcast” and “when I receive” blocks to broadcast the angry smoke effect.
This example uses a “broadcast” block, names it “fuming,” and adds it above the “show feelings” block that expresses the angry effect.
Then, the “when I receive” block is added above the “hide” block for the gray dot sprite.
Your smoke effect might be bigger or last longer.
Tinker with the values in the repeat loop and “pick random” block to create your desired effect.
Now, it’s your turn.
Draw a new grey circle sprite.
Create a fading effect and code a smokey effect using “repeat” loops and a “create clone of myself” block.
Make the smoke effect go in different directions.
Finally, code the smoke effect to hide, then appear when it’s called.