blob: be7121328cd3ef218258b8e1e5d4534427e71687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extends Node2D
export(String, MULTILINE) var text = "Failed to load text :("
export var autostart = true
export var speed = 10
signal finished_reveal()
func _ready():
$TextReveal.to_render = text
$TextReveal.speed = speed
if autostart:
$TextReveal.start()
func start():
$TextReveal.start()
func _on_TextReveal_finished_reveal():
emit_signal("finished_reveal")
|