Difference between revisions of "Action"

From EDukeWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
An action is an animation for an [[actor]].
+
An action is an animation for an [[actor]]. Actions are defined outside of an [[actor]].
 
 
Actions are defined outside of an [[actor]].
 
  
 
action <name> <startframe> <frames> <viewtype> <incvalue> <delay>
 
action <name> <startframe> <frames> <viewtype> <incvalue> <delay>

Revision as of 22:11, 22 December 2004

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.