22 lines
772 B
GDScript
22 lines
772 B
GDScript
extends Node2D
|
|
|
|
@onready var dial = $plr/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)
|
|
$plr/chores/Sprite2D2.position.x += 100
|
|
$plr/chores/Sprite2D2.visible = true
|
|
var tweener = get_tree().create_tween()
|
|
tweener.set_trans(Tween.TRANS_CUBIC)
|
|
tweener.set_ease(Tween.EASE_IN_OUT)
|
|
tweener.tween_property($plr/chores/Sprite2D2,"position", Vector2(519,70),1)
|
|
await dial.Done
|
|
$plr.moving = true
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|