Shark Fishing Game

Step 2 – Getting the shark moving:

Start by setting up the basic movement for the Shark sprite.

Code helper image
  1. Make sure you're clicked on the Shark sprite
  2. Start with a Green Flag block (yellow section)
  3. Add a Forever block (orange) – we want the Shark to keep moving throughout the game
  4. Set the Shark to move 4 steps using a blue move 10 steps block and changing the number to 4
  5. Add a blue if on edge, bounce block
  6. Add a blue set rotation style, left-right block

Press the Green Flag at the top to start the game and check this all works. Can you work out what each block does?

Changing the shark costume:

The shark needs to use its jaws...

Code helper image
  1. Under the Move 4 steps block add an orange wait 1 seconds block
  2. Change the 1 seconds to 0.1 seconds
  3. Then add a purple next costume block

Not all sprites have multiple costumes.