Question
PacMan
For this PacMan game I am making, I do not know how to add
the code for the boudries, with an instance name of "walls". My
PacMan guy can move around and stuff fine, but he goes through the
walls, and that's a problem. Also, I don't know if the code goes
under PacMan himself, or the walls that were converted to a movie
clip named "Boundries". The code I have so far (that dos not work)
is under PacMan:
if (walls.hitTest(getBounds(_root).xMax, _y, true)) {
_x -= 1;
}
... I got it from the example of "Maze" in the examples folder of Flash MX.
Thanks!
if (walls.hitTest(getBounds(_root).xMax, _y, true)) {
_x -= 1;
}
... I got it from the example of "Maze" in the examples folder of Flash MX.
Thanks!