Kind of vauge, if these explanations weren't what you wanted, can you be more specific? Maybe if you gave an example within a game, because I don't see a reason for what you are doing, since gameEditor already has multiple file image animations.
Assuming that is not what you are talking about, you can do it several ways, here is one. You can use animpos, so a single image, and upon the key up, you have this code.
- Code: Select all
animpos++;
Note that the animation direction should be stopped.
A direct version, using your example, this code would be on the key up of UP.
- Code: Select all
if(strcpy("charLeft", getAnimName(animindex))==0)
{
ChangeAnimation("Event Actor", "Charleft2", STOPPED);
}