An action is an animation for an actor. Actions are defined outside of an actor.
action <name> <startframe> <frames> <viewtype> <incvalue> <delay>
<name> is the name of the action.
<startframe> is the starting frame number (relative to the main sprite of the actor).
<frames> is the total number of frames in the action. Must be at least 1.
<viewtype> is the number of sides drawn for the actor. Prior to 3D models, this method was used to simulate a 3D appearance for sprites. Valid values are:
<incvalue> is the direction of the animation. 1 to advance forward, -1 to go back.
<delay> is the delay between frames.
The delay change everytime you add a value of 4, in other words, setting 1 to 2 is the same of setting 0, setting 5 to 7 is the same as setting 4, etc.
Also the delay is not proportional to the value, setting 16 doesn't mean double of speed than 8, the calculation is done with this: the speed of a delay 0 equal to a tic counter; the speed of a delay 4 is 1/2 of it; 8 is 1/3; 12 is 1/4; 16 is 1/5; 20 is 1/6; etc.
To call an action from within an actor simply put:
action <name>
Note: Every frame advance adds 1 to actioncount. To reset an animation, either call the action again or use resetactioncount. Starting a new animation will also reset actioncount to 0.