starcheese/cheeseCollision.gd

13 lines
175 B
GDScript3
Raw Permalink Normal View History

2024-10-01 16:43:34 +02:00
extends Area2D
func _ready():
pass
2024-10-01 16:43:34 +02:00
func _process(delta):
pass
func _on_body_entered(body):
if body.name == "spaceship":
queue_free()
print("Cheese collected!")