Action

From EDukeWiki
Revision as of 23:11, 22 December 2004 by Mblackwell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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. 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:

action <name>

Note: Every frame advance adds 1 to actioncount. To reset an animation, either recall the action, or use resetactioncount. Starting a new animation will also set actioncount to 0.