Good morning I’m making some mini games and I would like to know when the player moves from scene 1 to scene 2 and then from scene 2 to scene 1 how can I have the same position near the yellow door even if the player starts very far from it from the scene 1
Write two global variables Player X and Player Y Pos.
After a scene change, you move the player to this values
if have a lot more doors / ways etc. you need a more complex system, but anyway u store the last pos or just x and y is very close to the point u want the player to be.
what also maybe helps, create one global var for each door/way you have and when its used you toogle a boolean for an easier way back
Here an example for a way in a door and the second screenshot, the way back
Hi thanks, could you kindly explain it to me more easily maybe scene by scene if it’s possible I’m new to creating small games
Thanks friend I succeeded thanks again
what about the fade in fade out?
withn the function of positions
Anyway where you can find global variable? Sorry if i annoy you all
Global variables are found under the game settings where you open the bar to create a scene