CAOS Language Guide

Animation and Movement Commands

Macro

Description

These commands all alter the physical appearance or location of the TARG object.


ANIM [123456789R]

ANIM [001002003R]

Start animation of TARG object or part, using the poses specified. Animations ending in R will repeat indefinitely.

Note: For objects the entries are single digit poses, for creatures the entries are 3 digit poses. Max length of animation string in both cases is 32 digits.

Command only

OVER

Wait until TARG objects animation is over.

Note: ANIMs ending in R will never end, hence causing a lock out.

Command only

POSE

POSE number

Sets/returns the objects (or parts) pose – i.e. which image number it is currently using.

RValue and command.

PRLD [1234]

Pre-load image cache with these poses for smoother animation later

Note: Not applicable on a creature

Command only

BASE number

Specify the base image number for this object/part. Can be used to allow anims from a large table of images by moving base sprite number around table. This is the only way to use ANIM on an object with more that 10 images in its image gallery because ANIM uses a single digit to specify poses.

Command only

VELX velocity

Sets/returns the object's velocity in X direction.

RValue and LValue

VELY velocity

Sets/returns the object's velocity in Y direction.

RValue and LValue

MVTO x y

Move object to absolute location and redraw

Note: Should not be used on a creature that has had its limit set.

Command only

MCRT x y

Move object to absolute location and redraw, this is different from MVTO in that the object has it’s limits removed before moving.

Command only

MVBY x y

Move object by relative amount and redraw.

Command only



Creatures 2 CAOS Language Guide

Introduction

Macro Commands

Reference