Shark Fishing Game

Step 3 – Get the shark to follow the mouse pointer

Code helper imageWe need a way to move the Shark around the screen. But this time we're not going to use the keyboard, but get the Shark to head towards the mouse pointer.

  1. Above the move 4 steps block, add a blue point towards mouse pointer block
  2. Try it out and check that it's working OK. Does the shark follow the mouse pointer when you move it around the screen?

That's all there is to it.

Make sure the Shark still bounces when it reaches the side of the screen.