How do I get a better Navigation for logic games

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
HTML5 Game Bundle (7 Games) – Created with Construct 3
  • Hi all,

    I’m building a linear kids logic puzzle game in Construct 3.

    Each puzzle is currently its own layout (e.g. Z1-P1, Z1-P2, Z1-P3 etc). There are about 30 puzzles per game, and I’ll be building many games using the same structure.

    I’m looking for a robust, low-maintenance way to handle navigation so a Next button moves to the next puzzle, without duplicating navigation events per layout or constantly editing event sheets as puzzles increase.

    What’s the best scalable pattern for this in Construct 3?

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The easiest solution is to store the puzzle number in a variable. Then, to move to the next layout use "Go to layout by name" action:

    Add 1 to puzzleNumber
    Go to layout "Z1-P"&puzzleNumber
    

    Alternatively, you can extract the current puzzle number from the current layout name:

    Set puzzleNumber to int(tokenat(LayoutName, 1, "P"))
    Go to layout "Z1-P"&(puzzleNumber+1)
    

    To avoid duplicating this logic in every layout, use a shared event sheet for all layouts, or place it in a separate sheet and include it in each layout’s event sheet.

  • Many thanks appreciate your advice & time.

    GaRRY

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