cgpino Posted June 23, 2017 Share Posted June 23, 2017 Hi everyone, I'm developing a maze game and I'm having some troubles with the collisions. You can take a look here: https://mazegame.cgpino.es The problem is that you can't go up and left or right at the same time if you are hitting a wall in left or right, this occur because actually each wall of my maze is a set of blocks (it must to be like this because I generate the maze randomly), so the ball collides with a lot of objects, but I only have this problem with the situation that I described before, I mean, if you go down and left or right at the same hitting a wall in left or right you don't have any problem. This is a special problem because when you play my game with the gyroscope of a phone, usually you can't control completely if you go up, down, right or left, so you get caught in a wall easily. I was searching a lot about this and found nothing, so I decided to add this topic in case someone came across something similar and could help me. Thanks in advance (sorry for my bad english). Link to comment Share on other sites More sharing options...
Antriel Posted June 24, 2017 Share Posted June 24, 2017 I asked @hexus and apparently Tilemaps can solve this issue for you. You will have to change how you create the map to use the Tilemap API instead. Unless you want to have levels that don't always fit in a grid, this should work nicely. Link to comment Share on other sites More sharing options...
Recommended Posts