Step 19: Small Asteroid 1 Start Code

Goal:


Let’s begin coding a small Asteroid by hiding it in the center of the game screen.

It won’t do anything until a big Asteroid is destroyed.

Steps:

  1. From the sprite menu, select the one called “Small_1.1″.
  2. From Control, place a when green flag clicked block.
  3. From Looks, place a hide block.
  4. From Motion, place a go to x/y block.
  5. Set X and Y to 0.

Code: