Hello,
I’m trying to add another instance of my GurlBall to the stage, whenever a gBall instance collides with a bBall instance. (Does that make sense?) I have a GurlBall, Ball, and a BallCollision actionscript file.
GurlBall.as:
private function hitTest():void {// for (var i:int = 0; i < Main.bFishList.length; i++)
{
if (this.hitTestObject(BallCollision.bFishList*))
{
trace("hitEnemy");
speedX = -speedX;
speedY = -speedY;
addChild(this);
}
}
How would I reference the bBall instance in the BallCollision file, and how can I add a gBall instance when they collide?