This is how it is saved;
This is how it is loaded;
I am checking the ini file and it saves the correct room name but when I load I always go to the same wrong room.
I've put a save/load object at the beginning of the game and made it persistent.
GML:
ini_open("save.ini");
ini_write_string("room", "currentRoom", room_get_name(room));
ini_close();
GML:
ini_open("save.ini");
roomLoad = ini_read_real("room", "currentRoom", mainMenu_Room);
ini_close();
room_goto(roomLoad);
I've put a save/load object at the beginning of the game and made it persistent.