Step 6: Create Variables

Goal:


We need to create new variables to track the position of the big asteroids in order to create a spawn point for the smaller asteroids.

Steps:

  1. Click the sprite for Big_Asteroid_1
  2. In Variables you need to create 4 new variables.
  3. They are: – BIG_1_X – BIG_1_Y – BIG_2_X – BIG_2_Y
  4. Once you have finished making your new variables, make sure that they do NOT have a check mark next to them in Variables. Only Points and Lives should be checked.

Code: