Okay so basicly Im putting together a mortal kombat style fighter(snes version) Where you only move two directions. Each direction is on a different loop.
I got a second view with a couple of punching animations on it.
execute repeatedly looks something like this. (i know some of the syntax doesnt make sense, but its just to give you an idea since its a very short script you shouldnt have trouble.
If(KeyPressed == true)
{
if(cCharacter.Loop == 1) #Should be the loop which faces left.
{
cCharacter.LockView(2);
cCharacter.Animate(0,4,norepeat Etc Etc
}
if(cCharacter.Loop == 2) #Should be the loop which faces right.
{
cCharacter.LockView(2);
cCharacter.Animate(1,4,norepeat Etc Etc
}
}
Okay its something extremely similar, except with an additional if to tell when the animating is done, and to switch back to the normal view.
However for some reason it always comes back as loop 1(the facing left loop) Even when the loop that is really being used is 2 (The right loop) So as you can see something isnt going as planned.
Any help would be greatly appreciated, and if this is too sloppy or something Im sure I can comeup with the exact codeI'm using, its just on another computer right now.
Thanks in advance.
I got a second view with a couple of punching animations on it.
execute repeatedly looks something like this. (i know some of the syntax doesnt make sense, but its just to give you an idea since its a very short script you shouldnt have trouble.
If(KeyPressed == true)
{
if(cCharacter.Loop == 1) #Should be the loop which faces left.
{
cCharacter.LockView(2);
cCharacter.Animate(0,4,norepeat Etc Etc
}
if(cCharacter.Loop == 2) #Should be the loop which faces right.
{
cCharacter.LockView(2);
cCharacter.Animate(1,4,norepeat Etc Etc
}
}
Okay its something extremely similar, except with an additional if to tell when the animating is done, and to switch back to the normal view.
However for some reason it always comes back as loop 1(the facing left loop) Even when the loop that is really being used is 2 (The right loop) So as you can see something isnt going as planned.
Any help would be greatly appreciated, and if this is too sloppy or something Im sure I can comeup with the exact codeI'm using, its just on another computer right now.
Thanks in advance.