Topic: Do I save the game progress?

as most have probably played my game, I decided to put a couple of more difficult areas, and also wanted to ask this

in the game there will also be hidden easter eggs and accomplishments, the question is how you can save all files achievements and acutual game, but when you exit the game and re-open your accomplishments still be there? the game will be quite long, so ask about that, aver if there is a type of saving, in Sonic 3 to close the game and re-open, your zone, emeralds, lives and continues, still be there

my biggest greetings to all big_smile

hewe go!

http://1.bp.blogspot.com/-DhIBWVALM1E/VL-9jSLZggI/AAAAAAAA0no/RYn7-QXUWR4/s1600/4414464_60x60.png

Re: Do I save the game progress?

save_level command.
create an object that creates a global variable (.levelid example) with the value of 1.
suppose you reached stage 4. If the level is equal to 4, create object ".levelid" 4 times.
after that, save the level.

understood?

Re: Do I save the game progress?

MatheusRRR wrote:

save_level command.
create an object that creates a global variable (.levelid example) with the value of 1.
suppose you reached stage 4. If the level is equal to 4, create object ".levelid" 4 times.
after that, save the level.

understood?

more or less... But when you leave the game, your achievements, emblems or emeralds, will remain on your counter? suppose I have 7 emeralds and saved me progress at the end of the zone, then I close the game and I open emeralds are my earned will still be there?

hewe go!

http://1.bp.blogspot.com/-DhIBWVALM1E/VL-9jSLZggI/AAAAAAAA0no/RYn7-QXUWR4/s1600/4414464_60x60.png

Re: Do I save the game progress?

crear una variable global para cada cosa que quiere.
vamos a tomar como ejemplo las esmeraldas. Supongamos que tenemos 3 esmeraldas.
así que si usted tiene 3 esmeraldas la fase crea el objeto ".emerald_progress" 3 veces. puesto que el objeto creado define una variable global. Al guardar, cada vez que se carga la fase, cargará 3 objetos que definen una variable global que es ".emerald_progress" + 1.

¿tu entendiste?

Last edited by MatheusRRR (2016-03-13 15:05:31)

Re: Do I save the game progress?

MatheusRRR wrote:

crear una variable global para cada cosa que quiere.
vamos a tomar como ejemplo las esmeraldas. Supongamos que tenemos 3 esmeraldas.
así que si usted tiene 3 esmeraldas la fase crea el objeto ".emerald_progress" 3 veces. puesto que el objeto creado define una variable global. Al guardar, cada vez que se carga la fase, cargará 3 objetos que definen una variable global que es ".emerald_progress" + 1.

¿tu entendiste?

I think so

hewe go!

http://1.bp.blogspot.com/-DhIBWVALM1E/VL-9jSLZggI/AAAAAAAA0no/RYn7-QXUWR4/s1600/4414464_60x60.png