i'm a true beginner to GE but i've learned some scripting methods for moving a character around this board. So thanks for all of that!
The issue i have now is just testing a blade/hit animation. when the player is facing right and i hit the "a" key i want the sword hit animation to happen. so far it does work but it never comes out of the frame and go back to the standing right position.
here is the code im using for this. Any help would be greatly appreciated
char *key = GetKeyState();
if(animindex == getAnimIndex("StandRight"))
{
if (key[KEY_a]==1)
{
ChangeAnimation("Event Actor", "SwordRight", NO_CHANGE);
}
else if(key[KEY_a]==0)
{
ChangeAnimation("Event Actor", "StandRight", NO_CHANGE);
}
}