-
Notifications
You must be signed in to change notification settings - Fork 0
Animation Definitions
Animation definitions are stored in the mods/[mod-name]/animations/ folder.
Animations definitions can be layed out in two different ways:
- The fast way for developing and prototyping
- The packed way to save (lots) of memory when playing, also reduces loading times!
The first and fast way to define the animations is to setup the frames in a grid like fashion:
image=images/avatar/male/cloth_shirt.png
render_size=128,128
render_offset=64,96
[stance]
position=0
frames=4
duration=120
type=back_forth
[run]
position=4
frames=8
duration=60
type=looped
Comments begin with a # symbol. These should be on a line by themselves.
image refers to an image containing different frames to craft an animation from it. All the frames for an animation are packed into one image. An animation definition file should only have one image entry. The path of this file is assumed to be mods/[mod-name]/images/...
render_size determines the size of each cell in the grid by giving width and height.
render_offset determines the position of the virtual ground point given as an offset of x and y.
New sections start with brackets.
describe: position=0 frames=4 duration=120 type=back_forth
...