Im still new in godot, and im trying to change scenes using Area2D node. With my code, im able to switch scenes back and forth.
Heres my code :
extends Area2D
export(String, FILE, "*.tscn" ) var next_world
func _physics_process(_delta):
if get_overlapping_bodies().size() > 0:
get_tree().change_scene(next_world)
However, by using this code, the player will only appear based from where i placed his node inside of the scene, which is not what i wanted for scenes with multiple entrances. is there any way to make the player appear in a specific location in the scene using the Area2D node? (which in my case is in front of the node) Or do you need another node to do so?
Because i couldnt seem to find any guides/tutorials regarding this.