Refresh page/game?

If you have found a bug, or have a suggestion/comment then leave it here

Post » Sun Nov 25, 2012 1:35 am

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?
B
4
Posts: 17
Reputation: 660

Post » Sun Nov 25, 2012 1:36 pm

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Nov 26, 2012 3:08 am

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....
B
4
Posts: 17
Reputation: 660

Post » Sun Dec 02, 2012 12:38 am

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.SciFiStudios2012-12-02 00:42:04
Casus Belli: A reason or cause for war
B
17
S
7
G
5
Posts: 38
Reputation: 4,003

Post » Mon Dec 03, 2012 6:50 pm

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.
B
4
Posts: 17
Reputation: 660


Return to Website Issues and Feedback

Who is online

Users browsing this forum: MrEmixam and 2 guests