Having Trouble with cloned enemy actors...
Posted: Fri Dec 09, 2011 6:30 pm
So, I have my enemy set up like this;
Enemy->Create->Script->
Enemy->Draw->Script->
and on my Character;
Collision->AnySide->Enemy->Script->
now my problem is, if I clone the enemy, every Enemy dies when the textNumber=0;...
sorta like this I guess;
Is there a way I can set up a form of "EventActor" only on the Enemy that my Character is colliding with?
I've tried a few things, but nothing has worked yet...
+1 to whom who helps
Enemy->Create->Script->
- Code: Select all
Enemy.textNumber=3;
Enemy->Draw->Script->
- Code: Select all
if(Enemy.textNumber==0)
{
DestroyActor"Enemy";
}
and on my Character;
Collision->AnySide->Enemy->Script->
- Code: Select all
Enemy.textNumber=Enemy.textNumber-1;
now my problem is, if I clone the enemy, every Enemy dies when the textNumber=0;...
sorta like this I guess;
- Code: Select all
EventActor.textNumber=3;
if(EventActor.textNumber==0)
{
DestroyActor"EventActor";
}
Is there a way I can set up a form of "EventActor" only on the Enemy that my Character is colliding with?
I've tried a few things, but nothing has worked yet...
+1 to whom who helps