My puzzle game is missing the most important part

I started working on a puzzle game where you have to organize different objects (like bills and credit cards) in a suitcase. I just realized I’m not sure how to actually verify that the player solved the puzzle by moving the objects into columns. Does anyone have any input on how I could accomplish this?

5 Likes

I have no clue, but I solved it and I think you should have a move counter to know how well you did

1 Like

Thanks, the eventual plan is that you only have a limited number of moves.

Good Game!

1 Like

I see you are using a tilemap to move the pieces. You could set a specific tile depending on which one is on top of it, and then after each move check if the tilemap is in the solved position.

First, make the arrows at the bottom of the screen a sprite. Then, you could do an on game update check to see if the corresponding cards are aligned with the arrow, and it updates a variable if the card is changed. For instance, if 2 green cards correspond, then the value has a value of 2. If it had 4 cards corresponding and 2 got moved away, it would be 4 then 2. Then, make another if statement to check if all the values equal 4 (or 3 for the blue), and if it’s true, then you win. I’m not entirely sure this will work, it it sounds legit to me!