extends Node2D var conta_soldi: int = 0 # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass func _on_ingresso_body_shape_entered(body_rid, body, body_shape_index, local_shape_index): body.queue_free() conta_soldi+=1 if conta_soldi>=10: conta_soldi=0