extends Area2D func _on_body_enter(body): if (body extends preload("res://Scripts/player.gd")): get_node("/root/global").next_level() func _ready(): connect("body_enter", self, "_on_body_enter")