second collision=destroying the actor
Posted: Sat Jan 14, 2012 4:40 am
Hey guys i am trying to make my collided actor to stay alive with first collision but get destroyed with second collision how can I do that?
Game Editor discussion board
http://game-editor.com/forum/
myvar=myvar+1;
if (myvar==2)
{
destroy actor function;
}
hp = 2;
hp--; //this is the same as hp = hp -1
if(hp<=0) DestroyActor;