Step 4: Making the Fish Bounce

Goal:


We are going to code how to make the fish bounce around the game screen.

Steps:

  1. Stay on the “Fish” sprite.
  2. From Motion, place a glide block and change the right side to random position.
  3. From Operators, place a pick random block and set the numbers to 1 and 3.

Code: