Step 31: Duplicate Code

Goal:


We only coded one small Asteroid that comes out of a destroyed big Asteroid.

However, the big Asteroid will explode into many small Asteroids.

We need to duplicate the code we made for one small Asteroid into the other small Asteroid sprites.

Steps:

  1. Duplicate all the code from Small_1.1 in to Small_1.2, Small_1.3, and Small_2.1.
  2. DO NOT copy the code into Small_2.2 and Small_2.3, those require changes in 2.1 that we will be making in the next steps.

Code:


Click to replay