Difference between revisions of "Action"
|Line 19:||Line 19:|
Note: Every frame advance adds 1 to [[actioncount]]. To reset an animation, either
Note: Every frame advance adds 1 to [[actioncount]]. To reset an animation, either the action or use [[resetactioncount]]. Starting a new animation will also set [[actioncount]] to 0.
Revision as of 23:12, 22 December 2004
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. Values are: 1, 5, 7, and 8. 8 is the same as 5 but with no mirror.
<incvalue> is the direction of the animation. 1 to advance forward, -1 to go back.
<delay> is the delay between frames.
To call an action from within an actor simply put: