D
Dave M
Guest
Currently my game saves and loads the player's x and y location and various other items, chest, keys, boss level, health ect to an ini file. These objects however are only added to the room once.
Enemies and level objects are duplicated.
How can i save the location of these duplicated objects?
I don't know where to start, i need a general direction and ill figure it out from there.
I've been messing around with id and for loops, but is there a better way?
Here is my save and load script:
scr_load
For example: When loading the game:
scr_save
For example: When saving the game:
Enemies and level objects are duplicated.
How can i save the location of these duplicated objects?
I don't know where to start, i need a general direction and ill figure it out from there.
I've been messing around with id and for loops, but is there a better way?
Here is my save and load script:
scr_load
Code:
ini_open("savedata.ini");
argument0 = ini_read_real("Save", "argument0", argument1);
ini_close();
Code:
scr_load(global.coins)
scr_load(global.playerx,0)
scr_load(global.playery,0)
Code:
ini_open("savedata.ini");
ini_write_real("Save", "argument0", argument0);
ini_close();
Code:
scr_save(global.coins)
scr_save(global.playerx)
scr_save(global.playery)
Last edited by a moderator: