Modding:.frames

From Starbounder - Starbound Wiki
Jump to: navigation, search
"frameGrid" Defines the dimensions of single frames, the sprite sheet's dimensions and more
"size" Defines the dimensions of a single sprite in pixels (Format: [X, Y])
"dimensions" Defines the dimensions of the sprite sheet in sprite count (Format: [X, Y])
"names" Sets names for animations, later used in animation functions (Example: [null, "talk.0", "talk.1", null, "yell.0", "yell.1"] -- First dimension skipped, due to null. Second dimension defined as "talk.0". Third dimension defined as "talk.1". Fourth dimension skipped, due to null).
"aliases" Defines aliases for frame names, usage "run.0" = "walk.1" (whenever "run.0" is called, use "walk.1")


Note: Sprite sheets are always read horizontally, use a comma after the first array to tell him -start a new line-