1 2 3 4 5 6 7 8 9 10 11
extends Area func _ready(): var _connected = self.connect("body_entered", self, "_body_entered") func _body_entered(body): if body.is_in_group("player"): global.sunwarp = 1 body.get_node("pivot/camera/sunwarp_background").visible = false