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
199 B
GDScript

extends Area2D
func _on_area_entered(area):
var apparel = area.get_parent()
if !apparel.is_in_group("hair_accessory"):
return
apparel.track = false
apparel.global_position = global_position