How do I Change Layout by index?

0 favourites
  • 2 posts
  • Hello! I did a little searching here and at google's but didn't find a solution.

    I have a "check point" layout that is responsible for redirecting the user to a level (retry or next). But I would like to use this same layout to any finished level. For this I keep record of the current level. The thing here is that I see only these options available as "actions": Go to previous/next layout, Go to layout (by name), Restart layout and Goto layout "specific layout". Is there any way to go to a layout by its index number?

    As I am writing this I am thinking about making a translate table between a number and a text. What do you think? How do you do this kind of thing?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I implemented something similar in my tutorial, maybe you want to look at how it's done by "manual indexing". Look at Line16 and Line17, as well as how I named the layouts. Cheers!

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