I am currently creating a fighting game and need help with the HP bar. I created it using multipole animations and ran into a problem... how do I make the game look for what animation it is?
Ex.
From:
P2_100
To
P1_90
if(animindex=10) ChangeAnimation("P2_HP", "P2_90", FORWARD);
if(animindex=10) ChangeAnimation("P2_HP", "P2_90", FORWARD);
if(animindex=9) ChangeAnimation("P2_HP", "P2_80", FORWARD);
if(animindex=8) ChangeAnimation("P2_HP", "P2_70", FORWARD);
if(animindex=7) ChangeAnimation("P2_HP", "P2_60", FORWARD);
if(animindex=6) ChangeAnimation("P2_HP", "P2_50", FORWARD);
if(animindex=5) ChangeAnimation("P2_HP", "P2_40", FORWARD);
if(animindex=4) ChangeAnimation("P2_HP", "P2_30", FORWARD);
if(animindex=3) ChangeAnimation("P2_HP", "P2_20", FORWARD);
if(animindex=2) ChangeAnimation("P2_HP", "P2_10", FORWARD);
if(animindex=1) ChangeAnimation("P2_HP", "P2_00", FORWARD);
if(animindex=1) DestroyActor("p2");
Users browsing this forum: No registered users and 1 guest