I want to create a door that will spanw once the player passes a certain point, how can I it?
You can use an Area2D
node to detect when your player enters or exits any part of your map.
If you need to detect an object that enters an Area2D, you can use the area_entered signal.
If you need to detect an object that exits an Area2D, you can use the area_exited signal.
For more info about the Area2D node visit the next link:
2 Likes