class_name Door extends Node2D @export_group("Target", "target") @export_file var target_scene @export var target_position: Vector2 : get(): return target_position + Vector2( 8, # door offset to player center 16 - 7 # door offset to player center from bottom ) #func _process(delta: float) -> void: #var bodies = $Area2D.get_overlapping_bodies() #if bodies.size() > 0 and bodies[0].is_in_group("player"): #if Input.is_action_just_pressed("jump"): #get_viewport().set_input_as_handled() #print("transition") #player.current_state = player.state_idle()