Suggestion: Dynamic "Go to layout"

0 favourites
  • 13 posts
From the Asset Store
Firebase: Analytics, Dynamic Links, Remote Config, Performance, Crashlytics on Android, iOS & Web Browser
  • Hi Dev dudes!

    I'm kinda missing the ability to call Layouts dinamically - by a string, I mean.

    I'm trying to be a flexible as possible with my events, especially because I intend to add more levels and features later. Right now making a level selector, and even moving between levels, is proving to be a real pain.

    Is it possible to add this feature in the near future?

    Thanks guys!

  • If there's any workaround or new official way to this, I'm all ears! :D

  • You can already go to a layout by name. Is that what you mean? I don't quite understand :(

  • I Agree with you Gammabean. For exactly the same reasons. Having this Ability would greatly reduce the complexity of switching back and forth between many different levels. currently I'm using a global variable to set the next change. Then activating a level selector Group to check the global and load the proper layout.   it works but gets unwieldy fast, as I create more levels.

  • You can already go to a layout by name. Is that what you mean? I don't quite understand :(

    Is it possible? I don't see the option here. Maybe there's a different way to do it?

    Another suggestion regarding Layouts: DUPLICATE

    I used it a lot on CClassic after building a Skeleton level.

    Having a hard time copying and pasting everything and sorting the desired objects in their layers! <img src="smileys/smiley17.gif" border="0" align="middle" />

  • Works like a charm! Thanks Kyatric!

  • Nevertheless I'd like indeed to be able to go to layout via an expression (actually writing down the layout name).

    Dropdowns are cool, but for certain cases, writing the name of the layout directly would be better. (Consider layout names "Level1", "Level2", "Level3", it would allow for example when doing a "restart action" to write it like :

    System - Go to Layout

    "Level" & Level

    (Where Level is a global var)).

    If you can see my logic there.

    Workaround is to test what is the current level and then setting the correct action.

    Expression would prevent a few useless condition tests.

  • Yeah!

    Classic has this option (no dropdown actually) and I used it quite a lot :)

    For now, my solution was having a "SceneManagement" event sheet which has a big variable checking upon win_state = true, and a "go to" for all the levels I have.

    Then I just include this event sheet on all levels, and add those to the event.

    Not the best option, but works perfectly for now!

  • I understand now, and totally agree. Being able to use a variable to hold a layout would be very good.

  • Dropdown AND written down expression is my vote. Also, I did no know that C2 did not have a practical way to duplicate layouts?

  • Well both limitations are surely temporary. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • They sure are... It's just the waiting game now (Although if it helps bump it up the to do list, I could really use 'duplicate layout' also!)

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