Hi!
How I can give the possibility to save the game-progresses??
[NOT my project, but the user's progress]
//asuming all your variables are in a group "gameVar"
xpos_actor1=actor1.x;
xpos_actor2=actor2.x;
ypos_actor1=actor1.y;
ypos_actor2=actor2.y;
health=Health.textNumber; //in case your health meter is a text actor
saveVars("gamesave.sav","gameVar"); //the first argument is the file name, the second is the variable group that you want to save.
loadVars("gamesave.sav","gameVar");
actor1.x=xpos_actor1;
actor2.x=xpos_actor2;
actor1.y=ypos_actor1;
actor2.y=ypos_actor2;
Health.textNumber=health;
Users browsing this forum: No registered users and 1 guest