Reputation
395
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 26
Impact
~37k people reached

  • 0 posts edited
  • 1 helpful flag
  • 32 votes cast
Apr
15
comment Switching Screens without initializing them every time
thanks for your inpu, the game is for android/ios
Apr
14
asked Switching Screens without initializing them every time
Mar
14
awarded  Popular Question
Jan
16
awarded  Revival
Sep
6
awarded  Custodian
Sep
6
comment Match 3 game - Check for matches
Thanks man. Although you dont put the Tile we are checking from in the temp-array, so that tile wont get removed if we find a match, only the neighboring ones
Sep
6
reviewed Approve Match 3 game - Check for matches
Sep
6
comment Match 3 game - Check for matches
Ya I changed that too, I now only check row + 2 if row + 1 was a match
Sep
6
comment Match 3 game - Check for matches
It works now, I checked if the Tiles were the same, not the Id's.
Sep
6
comment Match 3 game - Check for matches
... One sec, I made a huge blunder
Sep
6
comment Match 3 game - Check for matches
No, it's inside my "main" class. Where I create the Tiles on board and everything else. I can't put it inside my Tile class, thats just an object. It has no idea what Tiles are neighboring
Sep
6
comment Match 3 game - Check for matches
Thank you, I tried your solution but cannot get it working properly. I edited my answer with what I tried, I call checkVertical after I made a move, passing the moved tiles row and col to the method. Then I set the id to 8 (changing the image of the tile) of the tiles that matched if there is a match just for testing to see if it works, but nothing happens.
Sep
6
revised Match 3 game - Check for matches
added 1233 characters in body
Sep
6
accepted Match 3 game - Check for matches
Sep
6
comment Match 3 game - Check for matches
@shiro One question tho, if I dont check tiles in the game loop (every frame), then how will the game know if there has been a match after the fallDown() method
Sep
6
comment Match 3 game - Check for matches
@Shiro Sounds a lot better than what Iam doing, write up an answer so I can accept :)
Sep
6
comment Match 3 game - Check for matches
@shiro I dont use recursion to check the 2 above tiles, matches can be 4,5,6,7 even 8 tiles in a row, so I check every tile in that direction as long as it has the same ID. Since I do tile.setChecked(true) first thing, means that even if the tile is in the middle, it is marked as checked and will be removed. And I agree that the code is infefficient at parts but this is usually how I write code, I just want to make it work first, then I worry about optimization after
Sep
6
asked Match 3 game - Check for matches
Aug
11
comment Libgdx coordinate system
You should probably post the code that gives u the actual problem
Aug
11
comment Libgdx coordinate system
Whats the point of this question? If you want to learn what happens behind the scenes then read the documentation, if not just use it as intended. You cant expect the game to resize itself automatically and you cant draw on the camera if u dont set ur batch's projectionmatrix