Using same menu in different layouts

This forum is currently in read-only mode.
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Thanks for reading!

    Say I got my inventory screen that I want to be able to bring up both in the navigation layout and the combat layout, how would you go about it?

    1. Put all the inventory feature assets in a Base layout, flag them global then call them individually every time you bring up the inventory in anyother layout

    2. Put them in the same "inventory" layer in every layout and make them appear when needed.

    Considering that the inventory has to be saved in a savegame.

    Thanks again!

  • Number 2 saving to an ini, or similar.

    Once you save something externally its just about the same as global.

  • Sounds good! Cool I'll do that thanks a lot.

  • This is where you discover the awesomeness of inheritance layers. From the wiki:

    Every layer has a property titled 'Inheritance Layer'. Using this property, it is possible to display the content's of another layer - even from a different layouts! Just specify the (unique!) name of the layer you would like to 'inherit', and Construct will search for that layer in the entire application. This is very practical to make things like HUDs appear in multiple layouts without having to copy their containing objects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm getting quite enlighten indeed. This is epic.

  • The inheriting thing is very useful, but i have had it go a little haywire in the editor.

    And setting up your hud on every layout is tedious and hampers change.

    The way I handle these sorts of things is to manually create them at the start of the layout using events.

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