Welcome to the Creatures Wiki! Log in and join the community.

POSE

From Creatures Wiki
Jump to navigation Jump to search

POSE is a CAOS command used to define the sprites used by an agent or part of a compound agent.

Its argument or return value is relative to BASE if that is set.

Usage[edit]

Syntax: POSE sprite (integer)

Sets current sprite of the target agent (TARG) or part of a compound agent (PART) to sprite. If performed while an ANIM is in progress, this will interrupt it.

Syntax: POSE

Returns, as an integer, the current sprite being displayed by TARG/PART, or -1 if PART is not valid. If an ANIM is in progress this will still display the sprite being displayed.

Examples[edit]

Set pose to sprite 2:

pose 2

Increment the current pose by 1:

setv va00 pose
addv va00 1
pose va00

See also[edit]

External links[edit]