Ho do I do collision detection inside a movieclip?
I have a maze game. The maze is composed of movieclips of horizontal and vertical walls arranged to make a small 5x3 maze. The code to construct the maze is in a sub-class and is called from the main class as a movieclip
var maze:Maze;
maze = new Maze();
addChild(maze);
The only trouble is I can't now do collision detection for the walls as they are now one movieclip and my player is inside of it so collision detection using hitTestObject will go off all the time. Ideally I'd like to keep the maze building code in a seperate .as file for neatness so if I can avoid putting all that code back into the main .as file then that would be preferable.
Can anyone help me?
