Hey, I'm having a problem to remove the enemy's life when the bullet hit him, some help to fix?
Code:function addEnemy():Void { enemy_mc.enemyHealth = 100; } addEnemy(); function createBullet():Void { for (var i=0; i<enemyArray.length; i++) { _enemy_mc = eval(enemyArray[i]); if (this.hitTest(_enemy_mc)) { this.removeMovieClip(); enemy_mc.enemyHealth -= 10; } } }