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

In this video, you'll create a title page for your two truths and a lie project.

First, create the title page.

Click on the stage, click on backdrops, then choose paint new backdrop.

Tinker with the tools available to create a fun title page that makes your friend want to play the game.

This example uses the paint bucket to fill the entire stage with one color.

Then uses the text tool to write the name of the game and give instructions.

You can also paint with the paintbrush and draw lines, circles and rectangles.

Name your new backdrop "title page".

Next, make the backdrop you just created the first one your friend sees.

To make the backdrop switch, from the looks menu drag out the switch backdrop to block.

From the dropdown menu select title page.

The title page will show for a little while then change to the two truths and a lie backdrop.

To program that timing, from the control menu place a wait block under the switch backdrop to block.

From the looks menu, place another switch backdrop to block under the wait block.

Tinker with the value in the wait block until the title page is on as long as you want it to be.

Click on the code to test it.

The title page shows first then the two truths and a lie backdrop, great.

Next, tell the program when to show the title page.

From the events menu, place a when flagged clicked block on top of the code stack.

Click the flag.

The title screen shows, but the sprite also starts talking.

Make the sprite hide and wait to show up until after the title screen shows.

Click on the sprite.

From the looks menu, place a hide block under the when flagged clicked block.

From the control menu, place a wait block under the hide block.

Make the wait time the same as the wait time between backdrops.

This example waits four seconds.

From the looks menu, place a show block under the wait block.

Test the code.

When the flag is clicked the sprite hides, waits four seconds, shows, then starts talking.

Nice job.

That's a fun way to introduce this game for your friend.

Now it's your turn.

Create a title screen backdrop.

Make the program switch to this backdrop then to the two truths and a lie backdrop using switch backdrop to, when flag clicked and wait blocks.

Finally, make the sprite hide when the flag is clicked, wait while the title screen shows, then show.

Choose an Add-On
Title Page
Winning Condition!
Losing Condition!
Personalize Your Sprite
Add Another Question (Challenge)
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!