clowder/scripts/main.gd
2024-03-03 21:17:01 +01:00

16 lines
524 B
GDScript

extends Node2D
@onready var dial = $CharacterBody2D/CanvasLayer
# Called when the node enters the scene tree for the first time.
func _ready():
await get_tree().create_timer(3).timeout
dial.typewrite("Oh what a wonderful day today!", load("res://sfx/meow.wav"),2, false)
await dial.Done
dial.typewrite("I should do my chores!", load("res://sfx/meow.wav"),2, true)
await dial.Done
$CharacterBody2D.moving = true
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass