GOOC - Game Oriented Object C

GOOC - Game Oriented Object C

Next: Defining Your GOOL Object, Previous: Spawns, Up: Top
[Contents]

12. Animations

12. Animations

If you'd like to have your objects display graphics, you must first define "animations" that it can play. There are five types of animations, and different directives are used to define each of them. However, they all share the attribute of having a name. Using an animation name in an expression will return that animation's offset (in base unit form). In order to set an object's graphics, you need to set the object's animseq field to a pointer to the animation data, getanim is an expression that transforms an animation offset into an animation data pointer. #anim TEST_ANIM [WiBlV] 8 ... animseq = getanim(TEST_ANIM) ...

There are five types of animations to choose from: