I am currently trying to make a 2D RPG pixel game. I am an artist trying to learn programming. Im getting there i think :")
I have made a scene changer.
Once the player enters the area, a signal is sent, that body has entered and it transitions to the scene i have assigned.
My Scene_changer code below:
export (String, FILE, "*.tscn") var scene_target = ""
$Sprite.visible = true
func onscenechangerbody_entered( body ):
That scene that i have assigned, has its own scene changers and each one goes to a different scene.
You can equate this to a player being in a city, then exiting a city that goes on a main map, that has different cities to choose from and to go to.
Entering and exiting a house.
example from the game Shovel Knight:
The problem that i cant find the answer to is:
In every city that i have, there are 4 exits, North, South, East and West.
When the character exits through the North side , to the main map, the character's position, is not on top of that main map city point that it came out of. And the same thing can be said for when it returns to the city it came out from, it does not enter from the North side. Which is understandable as it is not coded in.
How would one go and make it so that it enters through the exit and vise versa and not at a random point.
Ive been on this problem for the last 2 weeks, ive search online alot and cant seem to find an answer.
Thank you in advance for helping me.