- Code: Select all
if(collide.animindex==0||collide.animindex==1)
{
//0 being the animindex of the attack animation right, 1 left
hp-=1;
//hp is an actor variable
if(hp<=0)DIE;
}
if(collide.animindex==0||collide.animindex==1)
{
//0 being the animindex of the attack animation right, 1 left
hp-=1;
//hp is an actor variable
if(hp<=0)DIE;
}
if(collide.animindex==0||collide.animindex==1)
hp-=1;
if(hp<=0)DIE;
if(collide.animindex==6||collide.animindex==9)
{
//6 being the animindex of the attack animation right, 9 left
hp-=1;
//hp is an actor variable
if(hp<=0)DIE;
}
if((collide.animpos==7 || collide.animpos==8) && ((int)rand(2)==0))
{
hit();
}
Users browsing this forum: No registered users and 1 guest