typewriter text
Problem it solves
You want a story cutscene caption to print out letter by letter at a specific position on screen.
What this block does
Renders text letter-by-letter with a pause between each character, and optionally destroys the text after a duration.
The block
Block ID: retro_type_writer
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| text | string | The text to type out. | |
| pausePerCharacter | number | 50 | Delay between each letter in milliseconds. |
| x | number | 80 | X screen coordinate for the text. |
| y | number | 60 | Y screen coordinate for the text. |
| destroyAfter | number | 2000 | Optional duration after which the text sprite is destroyed. |
Example
Retro.typewriterText("Stage 1: The Ruins", 60, 80, 40, 2500)Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.