Pickup flute
This commit is contained in:
parent
204848fcf1
commit
142500fdd8
9 changed files with 181 additions and 39 deletions
18
scripts/Instrument/flute_pickup.gd
Normal file
18
scripts/Instrument/flute_pickup.gd
Normal file
|
@ -0,0 +1,18 @@
|
|||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.is_in_group("Player") :
|
||||
body.pick_up("flute")
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue