Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Transcript

This add-on will walk you through how to program your models to make a colorful cartwheel when they come on stage. Notice that the starter project contains a “when I start as a clone” block. You will add your code under this event block.

First, program the model to do a cartwheel. Drag out a “turn left” block. When you click this, the sprite turns. To make it do a full rotation, add a “repeat” loop.

Tinker with the values in these blocks until the they equal 360 when multiplied together.

This will allow your model to do a full cartwheel. Great! Next, add a “stamp” block from the Pen menu inside the repeat loop. Test this out.

cool! To clear the stage, place a “clear” block to the outside of the repeat loop. Now, when the model does a cartwheel, it makes a trail that disappears after it’s finished. To make a cool rainbow effect, place a “change color effect by” block inside the repeat loop.

Great! To change the model back to normal, add a “clear graphic effects” block to the outside of the “repeat” loop under the clear block.

Now, whenever the sprite does a cartwheel and changes its color, the “clear” and “clear graphic effects” blocks reset the model to its original look.

Add this code to the “when I start as a clone” event.

Now.. every time a model comes onto the stage, it does a snazzy cartwheel!

Now, it’s your turn: Make your model cartwheel using the “turn” block and the “repeat” loop. Add “stamp” and “change color effect by” blocks for a cool rainbow effect. Finally, reset your model using “clear” and “clear graphic effects” blocks. Add the code under the “when I start as a clone” event. If you have a question, ask your neighbor or put up your sticky to get the attention of your CS First guru!

Choose an Add-On
play_circle_filled
Snazzy Models
Program an opening curtain for your awards show.
arrow_forward
play_circle_filled
Models Talk
Create a list that your crowd sprites will use whenever they come on stage.
arrow_forward
play_circle_filled
Jumping Silhouette
Program an audience for your fashion show that will appear at the end and celebrate!
arrow_forward
play_circle_filled
Animate Trophy (Challenge)
Code your trophy to do an animation during your program.
arrow_forward
play_circle_filled
Applause and Music (Challenge)
Add a music loop or applause to your program.
arrow_forward
play_circle_filled
Glimmering Backdrop (Challenge)
Make your backdrop flash!
arrow_forward
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!