Hey, I need help on a Pacman game I'm working on. I want a want to make a Pacman track without making individual blocks. I took the below image and made everything but the walls transparent:
With my collision system:
It always thinks its colliding with the walls since it is one image. I would like to know if there is a way I could make the Pacman only collide with the walls. Thanks in advance!
public void checkCollision()
{
Walls a = (Walls) getOneIntersectingObject(Walls.class);
if (a != null) {
w = 2;
x = 2;
y = 2;
z = 2;
move(-6);
}
}
