Goal:
Let’s start by creating our variables for the fish.
These variables will control the speed of the fish in the x and y direction.
Steps:
- Select the “Fish” sprite.
- In Variables, click on Make a variable.
- Create 2 new variables and call these “xSpeed” and “ySpeed”.
- Be sure to select “For this sprite only” and be sure you are on the “Fish” sprite.