O'Reilly logo

Scratch 2.0 Game Development HOTSHOT by Sergio van Pul, Jessica Chiang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required