Reset Another Layout

0 favourites
  • 7 posts
From the Asset Store
Plugin Transition Layout C3. Layout opening and closing animation for C3. Quickly set up transitions between lay
  • Ok, I have 2 layouts, the game and the menu, and I would like one of the buttons on the menu to reset the games layout before switching to it, I need to reset everything except the players highscore, stored in a global variable. Is there any way to do this? Please help.

    Thanks in advance.

  • A layout will always be reset when you leave it.

  • So what you want to do is selectively reset the global variables? I'm doing that in a game by using System Set Value to manually reset the ones I want to reset, and not the ones I don't, as opposed to using the "reset global variables" function. That works fine. But I only have about 8 global variables to reset. If you have a large number of global variables to reset, and only a couple that you don't want to reset, you could use local variables to store the values you want to save, do the "reset global variables," then reset the ones you want to preserve from the local variables.

  • Ok, thanks it works! I set up when the play button is pressed it sets a global variable, then when the next layout starts and that variable is set, it resets the layout then resets all the global variable including the menus one.

  • Hello,

    I have many layouts of game levels. Then I need to pass a instance variables of player, who can take a gun and lose the gun, to another layout. How can I do this?

    Thanks in advance.

  • Hi!

    Can you explain how did you managed to reset to a particular layout?

    Thank you. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    are there any working sample that demonstrate resetting a Layout being triggered by a button found on another layout ?   

    say button in Layout 2 will reset Layout 1 ?

    Thank you.


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