clowder/scripts/main.gd

22 lines
772 B
GDScript3
Raw Permalink Normal View History

2024-03-03 20:22:50 +01:00
extends Node2D
2024-03-06 22:05:35 +01:00
@onready var dial = $plr/CanvasLayer
2024-03-03 20:22:50 +01:00
# Called when the node enters the scene tree for the first time.
func _ready():
await get_tree().create_timer(3).timeout
2024-03-03 21:17:01 +01:00
dial.typewrite("Oh what a wonderful day today!", load("res://sfx/meow.wav"),2, false)
2024-03-03 20:22:50 +01:00
await dial.Done
2024-03-03 21:17:01 +01:00
dial.typewrite("I should do my chores!", load("res://sfx/meow.wav"),2, true)
2024-03-06 22:05:35 +01:00
$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)
2024-03-03 20:22:50 +01:00
await dial.Done
2024-03-06 22:05:35 +01:00
$plr.moving = true
2024-03-03 20:22:50 +01:00
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass