• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Restart the game and return to the last chapter

V

Vlintex

Guest
Hi! my games is split in chapters (rooms linked together that you can explore). all the rooms are persistent and chapters starts with a room that read ''chapter x'' for 3 sec and then the chapter start.

here's what I can't do: i would like that when you lose, you restart the chapter. but since the rooms are persistents, when you restart the chapter, the ennemies you killed are still deads and the player is still dead too. I would like the game to do this when you die:

game_restart()
room_goto(the chapter you where in)

I don't know how to do it and I would really appreciate some help, thanks a lot!
 
Z

zmads

Guest
You could create a save system that auto saves in the start of each chapter, when you die you just load the last save.
If you like this idea I can send you the link of some tutorials, I never tried this before so I can't personally help you beyond my idea.
 
Z

zmads

Guest
Apparently it's not easy to save every instance, I will need to learn this later too, so good luck :)
 
Top