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?
I have no clue, but I solved it and I think you should have a move counter to know how well you did
Thanks, the eventual plan is that you only have a limited number of moves.
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!
I’m attempting to do that, but the code I’ve written doesn’t seem to work. (Image below)
Not sure if maybe putting tilemaps in “EqualTo” blocks is a bit cursed. How did you picture verifying if the current tilemap (with a M tile for Money, C tile for credit card etc) matches the solved example?
really cool ![]()
uhhhh
my suitcase is Really organized now but.. my hand seems to be broken
this happened when I click a thing that and press left,right,up or down and press A it cleared it and sometimes offset it
This should work!
There are comments inside the project. The real problem is that the equals operation does not know what to do with a tilemap.
I did code this really fast so it might not be the best way, but it seems like it works and thats what matters.


