I want run Full animation when press A key, for this work I used this script :
- Code: Select all
char *key = GetKeyState();
int uper=key[KEY_a];
switch(uper)
{
case 1 :
{
if (Down==1)
{
Down=0;
ChangeAnimation("ShangTsung", "Shang-Uper1", NO_CHANGE);
}
}
break;
}
But the animation is not fully implemented.But when I hold down the key animation is fully implemented, While I like the animation by pressing once fully implemented.
Please Guide ME.