R
royer14
Guest
Hello, in this question, I am working with ini files, so to save, I use:
Now I need to clarify that I use a player object and I place it in each room.
So I do not know how to make the same player object, I guess in the
create event
But it turns out that this only works in the first room -> "room_St1",
I have these rooms:
Code:
ini_open("sav.ini");
ini_write_real("Posicion","X",obj_player.x);
ini_write_real("Posicion","Y",obj_player.y);
ini_close();
So I do not know how to make the same player object, I guess in the
create event
Code:
ini_open("sav.ini");
var p_x = ini_read_real("Posicion","X",obj_player.x);
var p_y = ini_read_real("Posicion","Y",obj_player.y);
ini_close();
x = p_x; //obj_player
y = p_y; //obj_player
I have these rooms:
- room_St1
- room_St2
- room_St3
- room_St4