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

Transcript

In this add-on, you'll make your game more challenging by making the finish line get shorter.

This video will give you some steps to start.

Then use your creativity to complete the code.

To start, click the Finishline sprite, then the Looks menu.

Drag out a change size block and a set size block.

To program the finish line to get smaller, change the value on the change size block to a negative number.

Click the block to test.

Great, the finish line gets smaller.

To reset the finish line size when the game starts, drag the set size to 100% block to the top of the block stack.

Program this to say if the finish line is touching the player, then change size by some negative number.

Tinker with the values to get something you like.

Now it's your turn.

Use the set size and change size blocks to program the Finishline sprite to get shorter when the game starts.

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.
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!
Attributions
  • The song “Magic Marker” is © YouTube-- CC-BY-SA 4.0 does not apply.