Refresh page/game?

0 favourites
  • 5 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • I've made a sort of Metroidvainia style game and well It's a little complex. Bottom line is when the player dies the reset global variables command just isn't doing the trick. Rather than reprogram half the game for when the player starts over It would save me a heck of a lot of time if I could just refresh/reload the game. Now I know that for the arcade routing to another page has been disabled. But what about reloading the page? Or is there perhaps another command that can reload the game to its original state?

  • Perhaps you should use "Reset global variables" AND "Restart layout".

    The values of the variables will be reset and the positions and instances will be reset too when restarting the layout.

    The "go to page" disabled is for the browser plugin which allow to navigate/browse to a different URL than the game.

    For ingame layout navigation though, everything can be handled in events and from "within" the game.

  • But my protagonist traverses from layer to layout to layout. Each one is a room. Can we get a reset all layouts function? Damn.... I've worked so hard on this just to get stuck here.... <img src="smileys/smiley18.gif" border="0" align="middle" />

  • If you want to save progress, I don't know. But just resetting. Just use the go to layout action. I'm not sure if this would work if you have it wired to save progress even if you move to a new layout.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The restart layout + reset variables action seems to have worked. Thanks to Kyatric for the advice. I uploaded the game almost a week ago. Hopefully It'll be up soon.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)