Help with Destroy actor
Posted: Mon Mar 02, 2009 2:42 pm
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.
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.