I have set up my game “database” as an XML document which gets embedded into my swf. Each node within the document repesents an individual enemy and at run time each enemy becomes a new class and is then stored within an array. The enemy class is set up such that it stores all the base information of the enemy and is where the sprite of the enemy gets added to the screen. In my battle system I have another class which represents the battle type functions as it pertains to enemies, with one of the variables required is the enemy class (for the specific enemy in question). This Battle_Enemy class adds the Enemy Class to the screen (this.addChild (this.ene)), and then the Battle_Enemy gets added to the BattleScreen display object.
My issue arises when I am trying to display two enemies from the same Enemy Class. It only displays one of the sprites on the screen but both sprites are clearly on screen. What I am trying to do is not manipulate the data within the Enemy class, but use that as a base point for the battle_enemy.
Any help would be appreciated.