switch(dir)
{
case 0:
ChangeAnimation("Event Actor", "attack_r", FORWARD);
break;
case 1:
ChangeAnimation("Event Actor", "attack_u", FORWARD);
break;
case 2:
ChangeAnimation("Event Actor", "attack_l", FORWARD);
break;
case 3:
ChangeAnimation("Event Actor", "attack_d", FORWARD);
break;
}
if (dir == 0)
{
ChangeAnimation("Event Actor", "StandRight", FORWARD);
}
else if (dir == 1)
{
ChangeAnimation("Event Actor", "StandUp", FORWARD);
}
else if (dir == 2)
{
ChangeAnimation("Event Actor", "StandLeft", FORWARD);
}
else if (dir == 3)
{
ChangeAnimation("Event Actor", "StandDown", FORWARD);
}
Users browsing this forum: No registered users and 1 guest