Hi, hope to get an answer to a problem:
I'm doing top down adventure game, where each screen is a separate layout, surrounded by 4 collision objects that:
1. on collision with player set a global variable (1 - up,2 - right,3 - down,4 - left)
2. on collision with player depending on the side player exits screen sets global var Player_X or Player_Y
3. after setting these - it loads corresponding layout
Each layout has a "On load" event, where global variable (side) is checked depending on it's value the X and Y position of a player should be set.
And this partially true - the part that sets player position to (Player_X or Player_Y) operates normally but the part where position is defined in absolute values is ignored, instead the position of object on the layout is used (I place player on each layout).
How can i make it work? Or maybe you see whats wrong with the game logic here.