You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
219 B
GDScript

extends RigidBody2D
signal ccStrawCollected()
func _on_play_area_body_exited(body):
if body.get_parent() == $"../../Cupcakes" and body.name.find("Straw") != -1:
emit_signal("ccStrawCollected")
body.queue_free()