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 Keeping Time (Part 1 of 2)


In this add-on, you'll add a timer to keep score for this game.

To start, click on the player's frame.

Then go to Sensing and drag out the timer variable.

Variables in computer science hold values.

The timer variable will keep track of how much time it takes to complete the game.

Click the checkbox next to the timer and it's value will appear on the upper left corner of the stage.

When the flag is clicked, the timer is set to zero and begins to run.

Use a say block with the timer variable to make the player's sprite say the user's time when it touches the goal's frame.

Remember, variables hold values so rather than saying timer, the player will say the value of the timer, like 10 seconds.

Click the flag to test.

Great, check out that time.

Now it's your turn.

Keep track of the player's time using timer and say blocks.

Choose an Add-On
Spinning Obstacle
Create a more challenging game by making an obstacle spin.
Create an obstacle that slowly grows throughout the game.
Program the goal sprite to chase the player sprite.
Keeping Time (Part 1 of 2)
Create a timer to keep score for this game, and program a way to store the fastest time.
Keeping Time (Part 2 of 2)
Create a timer to keep score for this game, and program a way to store the fastest time.
Redesign Your Maze
Change the look of the maze or draw your own!
Tell a Story
Engage game players with an exciting story for your game.
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!
  • The song “Magic Marker” is © YouTube-- CC-BY-SA 4.0 does not apply.