if (animindex == 0)
{
//your effect
}
if (animindex == 1)
{
//your effect for 2nd animation
}
if (animindex == 0)
{
NGoku_HealthBar.animpos+=2; //it was marked as comment
DestroyActor("Collide Actor");
} //this was missing
if(NGoku_HealthBar.animpos>9)
{
DestroyActor("Event Actor");
CreateActor("Explosion", "Explosion_01", "(none)", "(none)", 0, 0, false);
DestroyActor("NGkou_HealthBar");
}
}
if (animindex == 1)
{
NGkou_HealthBar.animpos+=2; //was again marked as comment
DestroyActor("Collide Actor");
} //this was missing
if(NGoku_HealthBar.animpos>9)
{
DestroyActor("Event Actor");
CreateActor("Explosion", "Explosion_01", "(none)", "(none)", 0, 0, false);
DestroyActor("NGkou_HealthBar");
}
Users browsing this forum: No registered users and 1 guest