Help! Start a new game after loading

Get help using Construct 2

Post » Mon Jan 20, 2014 3:53 pm

I guys can someone help me here??
see i have 3 options in my game...

the player can start a new game from scratch
the player can save and load the game
and i have an option to go back to me main menu... the thing is...


what can i do if the player starts a new game after loading the game once or after playing for a while.. becuase the variables and the progress overall (doors unlocked, walls destroyed, items collected, etc etc) will be already done if the player starts a new game. what can i do to reset ALL to default when the player choose click start new game??.

i was thinking to make a save when the menu shows up... and if the player clicks on the option "go back to main menu" load the state that i saved later to set everything to the way it was when the game started... but... what if the player deletes that save slot from the game's documentation?? i dont have a clear solution to this...

what its the proper way and good tips and recommendation you can give me???

i dont want to force the game to be close... only to be run again to go back to the original state...

Thanks!!!
Lunatrap2014-01-20 15:55:46
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Mon Jan 20, 2014 5:13 pm

[QUOTE=Lunatrap] I guys can someone help me here??
see i have 3 options in my game...

the player can start a new game from scratch
the player can save and load the game
and i have an option to go back to me main menu... the thing is...


what can i do if the player starts a new game after loading the game once or after playing for a while.. becuase the variables and the progress overall (doors unlocked, walls destroyed, items collected, etc etc) will be already done if the player starts a new game. what can i do to reset ALL to default when the player choose click start new game??.

i was thinking to make a save when the menu shows up... and if the player clicks on the option "go back to main menu" load the state that i saved later to set everything to the way it was when the game started... but... what if the player deletes that save slot from the game's documentation?? i dont have a clear solution to this...

what its the proper way and good tips and recommendation you can give me???

i dont want to force the game to be close... only to be run again to go back to the original state...

Thanks!!!
[/QUOTE]

I don't know, but you can reset the variables if the player click "new game" or "reset" in the options while the player is playing the game, and after this action make a fast savegame to replace the new variables...

About the savegame, I resolve the general problems to save in my database (online) to save all data of the player. if the player like to reset the game, construct2 will reset all of the variables and will save in the same row of the database. you need to make some "loader" before the game start, because you could make some bug...Ribis2014-01-20 17:14:57
B
21
S
9
Posts: 298
Reputation: 2,967


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests