extends Node2D export var value = 1 func _ready(): #Sync all coinframes $AnimatedSprite.play() func _on_Area2D_body_entered(body: Node) -> void: #Collect if body.is_in_group("player"): Game.keys += value Game.score += 5 Audio.play_sound(Audio.a_gold,Audio.ac_collectible) queue_free()