Page 1 of 1

Help with Destroy actor

PostPosted: Mon Mar 02, 2009 2:42 pm
by equinox
I changed collision. But I have a problem.


script editor:test->mouse down=
if(strcmp(actors[i].clonename, "MIO.0") != 0){//se collido con diverso da MIO.0
actors->HP = -1;
Index.textNumber = actors->HP;
}
this ok.

but in script editor MIO->drawactor

if(HP <= 0){
DestroyActor("Event Actor");
}


this dosent work. Who can help with code? Tnk1000.

Re: Help with Destroy actor

PostPosted: Tue Mar 03, 2009 1:02 am
by makslane
Try:

Code: Select all
actors[i].HP = -1;
Index.textNumber = actors[i].HP;

Re: Help with Destroy actor

PostPosted: Tue Mar 03, 2009 1:11 pm
by equinox
Yes!!! This work!!

Tnk1000.