Goose now slides out and back properly when called.

This commit is contained in:
Henry 2026-02-12 00:33:18 +00:00
parent 69b3b935ad
commit c5a25cb33a
2 changed files with 9 additions and 4 deletions

View file

@ -8,9 +8,14 @@ func _ready() -> void:
func _on_goose_talk():
print("QUACK")
self.show()
#var tween = create_tween()
#tween.tween_property(self, "position:x", +5, .5).set_ease(tween.EASE_OUT)
var tween = create_tween()
tween.tween_property(self, "position:x", position.x - 50, .5).set_ease(tween.EASE_OUT)
await tween.finished
await get_tree().create_timer(3).timeout
#tween.tween_property(self, "position:x", -5, .5)
tween = create_tween()
tween.tween_property(self, "position:x", position.x + 50, .5).set_ease(tween.EASE_IN)
await tween.finished
self.hide()