Hi once again my project is stuck on a hit test requirement. Basically I have a main class where the stage objects are created so theRoller = new Roller(stage);
stage.addChild(theRoller); On the Stage is another movieclip ourMan = new Man(stage);
stage.addChild(ourMan); The Man object is controlled by key presses from Man.as and that works just fine. The Roller class is Roller.as and The roller, rolls from left to right. have put ‘hit boxes’ on Man at left and right sides called right_hit and left_hit. How can I detect if the Roller object hits the Man hit box? I have in main class constructor ourMan.addEventListener(“target_R_hit”, ManHit, false, 0, true); and private function ManHit(e:Event)
{
trace(“ManHitR”);
} //Have tried a few other things like 'if (theRoller.hitTestObject(target_R_hit))
{
trace(“Hit R”);
}can’t get anything to register. Can anyone help me to understand this? Best regards FJW