Layout in layout?

This forum is currently in read-only mode.
  • Is there a way to get another layout to show up when one layer is active?

    Like say i design one layout to be a sort of popup with options and when the first layer clicks a button this layout appears?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wouldn't the layout object (under OTHER category when inserting an object) do this? I'm not sure as I only spotted it yesterday but didn't play around with it or anything.

  • Awesome thanks i need to get my eyes checked lol.

  • haha no problemo. Let me know if it works as it'll be very useful if it does.

  • Works ok from what i can see

  • Nice one. Going to experiment later then. Going to need to knwo how to do popup menus and the like at some point anyway

  • I'm not sure how you would pass information used in one to the other though hmm?

  • Globals don't work? Or are they just per layout then? hmm

    What about creating a new event sheet with variables that'll store the info you're trying to pass and including that sheet in both layouts' events. Then just update in one layout and read the info in the other. I'm pretty sure there's a better way... not even sure if that would work but logically... it should Might be a pain if you have craploads of variables you need passing from one to the other..

  • Global variables would work for passing information between layouts. They're accessible between all layouts.

  • Globals don't work? Or are they just per layout then? hmm

    What about creating a new event sheet with variables that'll store the info you're trying to pass and including that sheet in both layouts' events. Then just update in one layout and read the info in the other. I'm pretty sure there's a better way... not even sure if that would work but logically... it should Might be a pain if you have craploads of variables you need passing from one to the other..

    That could work quite well i reckon.

    Global variables are useful but what if i want to share more than just a few variables, would be easier to share an event sheet, didn't think of that

  • hmmm good point! I didn't think of it being a more flexible approach actually

  • Global variables, global array object, etc are your best bets.

    The function object should also work if made global.

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