How do I make this puzzle system thing?

0 favourites
  • 7 posts
From the Asset Store
An amazing and interesting puzzle game for kids!
  • Hello

    I was trying to do something that I though it was easy, but it seems like it is not <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

    It's a puzzle system, something a little bit similar to the hacking puzzles of bioshock. Take a look at this .capx to see what I'm talking about:

    goo.gl/kqHXFK (I had to shorten it.. but it's a dropbox link)

    My difficulties are:

    -How can I make the pieces of the puzzle spawn with the same layout that I manually made? Maybe something with loops, but I could not manage to do it.

    -How can I use the arrows to navigate through the pieces? And if, for example, I tap the right arrow with the last piece to the right selected, it will be back to the first piece of the 'column'.

    Sorry for the english. But for now, that is my doubts.

    Thank you.

  • I can't see the capx but when you say Bioshock Hacking minigame do you mean a Pipe puzzle?

    I've seen a capx scattered around here somewhere using tilemaps but I don't know if it still works.

    I guess the challenging part would be getting that flowing water animation part to play.

  • I can't see the capx but when you say Bioshock Hacking minigame do you mean a Pipe puzzle?

    I've seen a capx scattered around here somewhere using tilemaps but I don't know if it still works.

    I guess the challenging part would be getting that flowing water animation part to play.

    I've updated the .capx!

    Yes, the flowing would be very hard too, but I do not want it. My system is just similar to Bioshock, not equal. I just want the "rotate and engage" thing, until you reach the goal.

  • I understand what you're trying to do now.

    Here: https://www.dropbox.com/s/p04xd82wc1n3m ... .capx?dl=0

    I corrected your capx and even included an indicator sprite.

  • For swapping/replacing part I have an example on following topic:

    And code to make pipe rotate:

    The rest would be utilizing flood-fill:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much, guys! these are awesome examples.

    And MPPlantOfficial, the keyboard based selection works perfectly!

    Sorry for bother again, but what about the spawn thing?

    I put the pipes manually in the layout, but I don't want it like this.. I need to spawn everything when something happens in the game.

    By the way, as the pieces layout can't be always the same and each layout need to have just one way to be finished, what way do you guys recommend that I do?

    But seriously, thank you very much guys! the people in this forum are awesome.

  • If you have fixed amount of pipes, that would be hard to create random pipes formation since you can't be sure if it can make correct connection to desired goal. I suggest you plot the valid pipe connection pattern first then randomize the rotation for all pipes on the game start.

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