JuegoClase/Coleccionables/fruta.gd

11 lines
127 B
GDScript3
Raw Permalink Normal View History

2024-10-26 05:47:55 +00:00
extends Area2D
func _on_body_entered(body):
if body is Player:
Global.frutas+=1
print(Global.frutas)
queue_free()