Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func _on_body_entered(_body: Node2D) -> void:
- coin_collected.emit(score)
- $Sprite2D.visible = false
- $CollisionShape2D.visible = false
- $AudioStreamPlayer2D.play()
- await $AudioStreamPlayer2D.finished
- queue_free()
Advertisement
Add Comment
Please, Sign In to add comment