Game Development Reference
In-Depth Information
We can draw this sprite in Scratch easily as follows:
1. Click on the Paint new sprite icon.
2. Select the Circle tool and draw a filled yellow circle. Press the Shift key while
dragging the cursor to make it perfectly round.
3. Next, switch to the Fill tool and select yellow for the foreground and orange
for the background.
4. Also, select the circular gradient opion.
5. Then, click the middle of the circle to fill it with a gradient, which is bright in the
middle and gets darker towards the edges.
6.
Name the new sprite as explosion :
That completes our explosion graphic.
Engage thrusters
When the player places a bomb, he/she has to make sure that the cat will move out of the
blast radius, or it will hurt and cost them points.
We will irst create the explosion efect as follows, so that we can esimate our next step:
1. Start again with copying the plain createMaze listener, without any size alteraions.
2. Then, start a new script with a when I receive <Kaboom> listener.
3. When the explosion sprite receives this message, we will set the go to <hole> block.
4.
Then, add the set size to (0) % block to make it infinitely small.
5.
Reset the set <ghost> effect to (0) block to make the sprite solid.
6.
Then, add the show block to the sprite. At this point, it will not be visible, because
its size is set to 0 percent.
7.
Then, add a repeat (20) loop to make the sprite grow in size.
8.
At each step, add the change size by (5) block. So by the end of the loop, it will be at
20*5 = 100 percent size.
 
Search WWH ::




Custom Search