Jump to content

Collision issue with a set of blocks


cgpino
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...