I am trying to make AI similar to 'http://www.verygaming.com/action/strike-force-heroes' and it's going pretty well so far.
This is the situation:
I have a main player sprite
I made hands with a gun positioned to player's shoulder, and which rotate in the player's direction if player is spotted.
I also made a sprite for the line of sight (to see if enemies see the player trough walls) which is also positioned to player's shoulder.
Then I made variables to the 'Line of Sight' for firing On/Off to make some bullets shoot when player is spotted.
There is no problem until I wanted to make more than one enemy of this type on stage: because I want hands to remain calm if player is not spotted, and line of sight has to follow him all the time, I cannot make it the same object.
And for example: Line of sight (enemy1) has Variable to "On" (means it spotted the player), all the hands read that variable and turn to the Player.
If I could just somehow make a single complex enemy who can be duplicated and maybe edited independently without having to make all the sprites all over again. Like a group or something, so that it has the same sprites, but not to read one another's variables.
I hope you understood my problem, I am not that great in Englis, but I gave my best to describe it to you.