1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 07:44:17 +00:00
swear-jar/Convertitore.gd
2023-10-01 00:47:50 +02:00

19 lines
431 B
GDScript

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