Prints the connected text to the top of the display.
Printing is a way to add text to a project, such as narration, character dialog, or instructions for a game. Only 6 lines of text will appear at a time, and printing more than six lines will cause a scroll bar on the right to appear.
Examples
Example 1
Print can be used to display a summary of the project.
Example 2
Printing text can make it look like the sprite is talking.
Syntax
printText
Parameters
Name | Type | Required? | Description |
---|---|---|---|
text | The text that will appear at the top of the display |
Tips
- Print can be used to debug code and display the property of a sprite.
- Use another print command to start a new line of text.
- If there are more than 6 lines of text, the scroll bar can be used to see the rest of the text not shown on the display.
Found a bug in the documentation? Let us know at support@code.org.