Global pause menu?

  • Hi all,

    I was just wondering the best way to create a global pause menu? I'm looking at having 100+ levels, and don't want to update each one when making changes to the pause menu.

    It looks like there was something called inheritance layers in CC. Is there a similar way to achieve this in C2?

    Thanks!

  • do global object instance and call it as "Pause Button". Make a specific event sheet for the pause function, place the button on a layout (you don't need to care about this layout, it's only to create the instance on the runtime).

    On the event sheet, make it create the button where you want, then, make it become invisible with events and make some event keys to activate the visibility.

    Call the event sheet on your stage event sheets.

    Well, that's it, if you need more specific description, you should share your CAPX, so, We can make it for you.

  • Thanks for the reply!

    My menu comprises of multiple buttons and other visual elements. Are you suggesting I create this dynamically with the event sheet rather than creating a designed layout?

  • That's probably the best thing to do at the moment really, until we get something like inheritance/global layers.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ehhhh... That's gonna be annoying for me, too. <img src="smileys/smiley6.gif" border="0" align="middle" /> Better than having to re-make the menu in every layout I guess. Thanks for the idea, I hadn't thought much about it yet.

  • Okay thanks. That's not too much of a problem, and probably how I'd do it with traditional coding anyway :)

  • Even if inheritance/global layers aren't due any time soon I think the option to just copy and paste layers from layout to layout would make it a little easier. It'd still mean you weren't having to draw the same layer over and over again.

  • It would, but I'm working with a pipeline that has regular art updates. I don't really want to be swapping stuff out for every level on a regular basis.

  • Ye it's not really practical. Even setting a pause menu through variables, co-ordinates and events isn't ideal when theory is put into practice. Ashley can you confirm if inheritance layers are going to make an appearance at some point?

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