Book Image

Scratch 2.0 Game Development Hotshot

Book Image

Scratch 2.0 Game Development Hotshot

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Game Development HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adding the bomb effects


The player can now easily create a way through the maze. If something is in the way, just blow it up. That does make the game slightly easy. So let's add another challenge in the form of a points system and a way to get hurt when using the bomb.

Prepare for lift off

We need another sprite for an explosion effect to follow the detonation of the bomb. The size of this sprite doesn't have to be exact, but it's a good idea to keep it roughly the same size as a tile, 60 pixels wide and 60 pixels high.

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 option.

  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...