I'm working on a project for college. I'm making a Third Person Top Down shooter game, I have almost finished but stuck on one main part of the game, getting the enemy movieclip to be removed from the stage when it's hit by a bullet movieclip.
I've managed to get the bullet to be removed from the stage when it hits the enemy and tried copying the code and manipulating it accordingly to remove the enemy also but it doesn't seem to want to work, it throws out 3 errors:
Enemy.as, Line 14 1120: Access of undefined property bulletList.
bullets = bulletList;
Enemy.as, Line 44 1120: Access of undefined property stageRef.
if (stageRef.contains(this))
Enemy.as, Line 45 1120: Access of undefined property stageRef.
stageRef.removeChild(this);
All the AS3 source files can be downloaded for viewing here.