Hey.
I've ran into another problem with my game.
I've been looking through the manual and on the forums but found nothing.
I want to be able to change room without moving the player to that room so that when I return from that room the player will be in the exact same position as when I left.
It's because I want a map that the player can bring up and then close again when they're done using it. I don't what to use a GUI for this because I want some objects on it that the player should be able to move around on the map.
So the way I would do this is to when the player clicks on the "Open Map" button it will save his current Room ID, Position X and Position Y to 3 different Global Variables then using the "ChangeRoom" command to go to the map room. Then when the player clicks on the "Close Map" button (In the map room) It will use the 3 Global Variables (Room ID, Pos X, Pos Y) to restore where the player was when he opened the map.
Is this the best way to do this or is there another maybe easier way of doing it?
Thanks in advance.
I've ran into another problem with my game.
I've been looking through the manual and on the forums but found nothing.
I want to be able to change room without moving the player to that room so that when I return from that room the player will be in the exact same position as when I left.
It's because I want a map that the player can bring up and then close again when they're done using it. I don't what to use a GUI for this because I want some objects on it that the player should be able to move around on the map.
So the way I would do this is to when the player clicks on the "Open Map" button it will save his current Room ID, Position X and Position Y to 3 different Global Variables then using the "ChangeRoom" command to go to the map room. Then when the player clicks on the "Close Map" button (In the map room) It will use the 3 Global Variables (Room ID, Pos X, Pos Y) to restore where the player was when he opened the map.
Is this the best way to do this or is there another maybe easier way of doing it?
Thanks in advance.