Added goose_talk() to the global event bus. And a goose.
This commit is contained in:
parent
614c5b5f78
commit
69b3b935ad
10 changed files with 80 additions and 3 deletions
16
scenes/goose.gd
Normal file
16
scenes/goose.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends Area2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
EventBus.goose_talk.connect(_on_goose_talk)
|
||||
|
||||
|
||||
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)
|
||||
await get_tree().create_timer(3).timeout
|
||||
#tween.tween_property(self, "position:x", -5, .5)
|
||||
self.hide()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue