L
LightWood
Guest
Hello GMS 1.4 Community! I have a really weird and annoying problem. I am just beginner in Game maker Studio and maybe I am doing something wrong. I have a save object (like in Undertale) which saves me and the room name where I am located. And in future I need to draw the room name where i were and I need to replace that room name with name where I am located now.
For example it draws room_1 (where i were before) than when I hit "save game" room_1 replaces to room_4. For example let's say that I have a global varibale called global.savedroom (this varibale saves the room name we are in). I created that varibale to display its value in another room.
For example i saved myself in room called room_1 and then I need to display that room name in another room even if I exit the game. To do it I save that variable (room_1) value in ini file. So here is one another problem. I save all my game values which I need to use in fututre in ini files (for example savedroom = <roomname>). So when I load that values from ini files in draw event it does show its name but when i save myself again in one room it also shows the room_1 name not the room_4 name (it does not update draw event). But I already saved myself in room_4. I also noticed that global.savedroom updates its value but doesn't updates in draw event. I hope you understood me. Here is an example gif to represent what I want to achieve.
For example it draws room_1 (where i were before) than when I hit "save game" room_1 replaces to room_4. For example let's say that I have a global varibale called global.savedroom (this varibale saves the room name we are in). I created that varibale to display its value in another room.
For example i saved myself in room called room_1 and then I need to display that room name in another room even if I exit the game. To do it I save that variable (room_1) value in ini file. So here is one another problem. I save all my game values which I need to use in fututre in ini files (for example savedroom = <roomname>). So when I load that values from ini files in draw event it does show its name but when i save myself again in one room it also shows the room_1 name not the room_4 name (it does not update draw event). But I already saved myself in room_4. I also noticed that global.savedroom updates its value but doesn't updates in draw event. I hope you understood me. Here is an example gif to represent what I want to achieve.
Attachments
-
115 KB Views: 8