mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-25 00:54:19 +00:00
19 lines
431 B
GDScript
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
|
|
|