Skip to content

Please update your browser

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

arrow_back Shrinking Finish-Line


If a player is doing well, you can make the game more challenging by making the finish line shorter. This screencast will introduce how to do this, but the code will be up to you to finish. Click on the finish line and the looks menu.

In looks, there are two blocks that you’ll need to complete this task. Drag out a "change size by 10” block and a “set size to 100%” block.

The “set size to 100%” block will reset the finish line’s size when a new game is started, so you can drag this onto the beginning of the block stack.

The “change size by 10” block will allow you to resize the finish line. Right now, if you click this block the finish line gets larger, but if you put a negative number in this block, the finish line should get smaller.

Great! How do you program this to say: That’s up to you to figure out. Remember, if you have a question, you can ask a neighbor to help you work it out or put up a sticky to get the attention of your CS First Guru.

Choose an Add-On
Finish Line Cheer
Program a sound to play if the player touches the finish line.
Play with a Friend Option 1
Add a second player to the game.
Play with a Friend option 2
Challenge a friend by having them control the enemies.
Shrinking Finish-Line
Program the finish line to get smaller as the player scores more points.
Bonus Points!
Create a sprite that, when touched, gives the player extra points.
Changing Level Design
Program the backdrop to change every time the player scores 5 points.
arrow_backward Back
Next arrow_forward
  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!