This commit is contained in:
1 parent
b07d850b82
commit
4aae35ee49
8 files changed
+155
-4
No files matched your search
@@ -0,0 +1,17 @@
|
||||
extends Node2D
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
add_to_group("Hidden")
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func on_contact(body: Node2D) -> void:
|
||||
print(body)
|
||||
$AudioStreamPlayer2D.play()
|
||||
visible = false
|
||||
%Player2D.coins += 1
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
queue_free()
|
||||
Reference in new issue
Block a user