Lesson6 Adding A Baddy
Lesson6 Adding A Baddy
In this lesson we will be adding a baddy that can eat your shark sprite. When this happens
the player will lose a life. We will program the game to end if all the lives are lost. We will
add more variables and use coordinates again to move the baddy.
Blocks to use
Instructions
1. Open your game from the previous
lesson.
2. Go to the choose new sprite from file
and add shark 1-a from the animals
file.
3. Click on the costumes tab and then
import. Import shark 1-b to costumes.
4. Click edit on shark 1-a.
In the paint screen select the bucket
fill tool and select the black colour.
Colour your shark black by clicking on
it.
Click OK.
5. Click edit on shark 1-b and do the
same as above
6. Click back on the scripts tab and add a
when clicked block.
7. Keep the shark the same size.
8. Add a hide block so that the shark
does not appear when the game starts.
9. We will use a forever loop again so
that the program for the shark runs
the whole time.
Add a forever loop.
Inside the forever loop add a wait 1
sec block.
10. Again we want the shark to appear
randomly so we need to put a pick
random block inside the wait block and
Page 1 of 7
Page 3 of 7
Page 4 of 7
Page 6 of 7
Page 7 of 7