Project 550: Racing Road

11. (Optional) Laser trail

Create another sprite that will act as a particle for a laser trail. The laser trail should follow behind the car and eventually fade away.
Starting point file for this challenge

Your goal

Steps

1. Design a laser particle

Put your mouse over the blue cat face button and select the paint brush tool that pops up. Draw a little dot to be part of a larger laser.

2. Hide the parent

Add a "when green flag clicked" to the laser. Then, add a "looks" block called "hide."

3. Tell the particle to follow the car

Attach a "motion" block called "go to ___" and change it to say the name of your car sprite.

4. Tell the particle to clone itself

Add the "create clone of myself" block. 

5. Repeat following and cloning forever

Add a "forever" loop and put it around the previous two blocks. 

6. Show the clone

Grab a "control" block called "when I start as a clone" and drop it somewhere in the code. Then, attach a "looks" block called "show."

7. Tell the clone to move backwards

Attach a "motion" block called "change Y by __" and change Y by -3. 

8. Tell the clone to fade away

Attach a "looks" block called "change __ effect by ___." Change ghost effect by 3. 

9. Tell the clone to shrink

Add a "looks" block called "change size by __" and change size by -1. 

10. Repeat the visual effects 100 times

Put a repeat loop around these 3 visual effects blocks. This will help the effects look smoother. Try repeating it 100 times. 

11. Delete the clone

After the repeat loop is done, add a "delete this clone" block from the "control" section.