Page 228 - Scratch Programming Playground
P. 228

Add the following code to the Explosion sprite:























                             The Explosion sprite hides until it receives the explode
                         broadcast. Then it plays a sound, goes to the position where
                         the spaceship is, and switches its costumes seven times to
                         create an awesome explosion animation!

                         11. Add the Explode Code to the Spaceship Sprite

                         The Spaceship sprite will broadcast the explode message when
                         it touches one of the Asteroid clones. Add the following script to
                         the Spaceship sprite:































      202   ChApTer 8
   223   224   225   226   227   228   229   230   231   232   233