SpriteSheetHelper, a class to ease sprite sheet animation data generation


Can be created with method new:

Lib.Away3D.Tools.Helpers.SpriteSheetHelper.new()

Creates SpriteSheetHelper object



Methods:

generateSpriteSheetClipNode(animID, cols, rows, mapCount, from, to)

Returns a SpriteSheetClipNode to pass to animator from animation id , cols and rows.

animID - String:The name of the animation

cols -  Int: How many cells along the u axis.

rows - Int: How many cells along the v axis.

mapCount -  Int: If the same animation is spread over more bitmapDatas. How many bimapDatas. Default is 1.

from - Int: The offset start if the animation first frame isn't in first cell top left on the map. zero based. Default is 0.

to - Int: The last cell if the animation last frame cell isn't located down right on the map. zero based. Default is 0.


Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad