Game Development Reference
In-Depth Information
2. We will change the color of the sprite to be a bit darker than the default bright pink.
3.
Go to the Costumes editor and choose a dark red color.
4.
Make sure that you view the image in Bitmap mode . This will make a big difference
to the running speed of the game when we create many starfish. You can toggle this
with the butons in the lower-right corner of the editor.
5.
Select the Fill tool and fill the starfish with the red color. Recolor both costumes just
for the sake of compleion.
Engage thrusters
The original sprite will be placed on the right side of the screen. From there, we will use the
cloning method to generate waves of starfish moving left towards the player character by
following these steps:
1.
Start with a when <green lag> clicked block.
2.
Let's click on hide to make the sprite invisible when not needed.
3.
Also, enter the value 30 in the set size to ()% block to make it smaller. It should
be about the same size as the diver.
4.
Add a forever loop to hold the clone generaion script.
We will make the sprite jump to a random locaion verically, point in a somewhat
random direcion to the let, and then spawn ive clones.
 
Search WWH ::




Custom Search