Displays a title screen.
Titles can show the name of the program or communicate something to the user. There are two sections: title and text. Title is larger text centered at the top of the display and the text is smaller text at the bottom of the screen.
Examples
Example 1
A title screen is used to describe the project.
Example 2
The green monster is running away from the purple popsicle monsters. When the green monster is caught, a title screen appears to indicate the game is over.
Syntax
showTitleScreen
Tips
- Connect
hide title screen
blocks to events likesprite clicked
to control the time the screen is shown. Code is executed quickly in Sprite Lab. If you show the title screen and then hide it in the same sequence of code, there is not enough time to see the screen in action.
Found a bug in the documentation? Let us know at support@code.org.