Position after change scene
Aldo
Member Posts: 53
Hi!
How I can load my last position after a change of the scene?
For example: My 1st actor collides with a 2nd actor[door](he changes the scene from 1 to 2). When I collide with a 3rd actor[door](he also changes the scene from 2 to 1), I return to the initial position. How to configure a position of the 1st actor that looks like he's just exited from 2nd actor[door]?
Regards
How I can load my last position after a change of the scene?
For example: My 1st actor collides with a 2nd actor[door](he changes the scene from 1 to 2). When I collide with a 3rd actor[door](he also changes the scene from 2 to 1), I return to the initial position. How to configure a position of the 1st actor that looks like he's just exited from 2nd actor[door]?
Regards
Comments
If I enter any data for x & y, my actor cannot move. ;(
Any ideas?
That will make it so when you start the game it starts where you want it, becase the player x and player y attributes you made are at the starting point. Then when you go threw the door, they update to the last position before changing scenes. Then when you go back to it it starts from where it left off, because player x and player y changed to the last position, then loaded with the 2 change attribute behaviors that are standing alone as soon as the scene starts.
thx!