I think you could get away with this though... It would follow the method you have been using thus far.
Samus->KeyUp(d)->Script Editor
- Code: Select all
char* key=GetKeyState();
if (key[KEY_a]==0 || key[KEY_d]==0)
{
if (side1==1) ChangeAnimation("Event Actor", "Samus Stop Right", FORWARD);
if (side1==0) ChangeAnimation("Event Actor", "Samus Stop Left", FORWARD);
}
else if (key[KEY_a]==1 || key[KEY_d]==1)
{
if (side1==1) ChangeAnimation("Event Actor", "Samus Right", FORWARD);
if (side1==0) ChangeAnimation("Event Actor", "Samus Left", FORWARD);
}
I think this will work, if you don't have any other factors for movement.