Static methods
staticfindImage(Image:FlxGraphicAsset, Path:String):{graphic:Null<FlxGraphic>, frames:Null<FlxAtlasFrames>, crash:Bool}
Helper function to cache the image and check for already made frames with it.
Parameters:
Image | |
|---|---|
null | Path |
staticfromCocos2D(Path:String, ?Image:Null<FlxGraphicAsset>):FlxAtlasFrames
Cocos2D spritesheet format parser, which basically has 2 versions, One is basically Starling (2v) and the other one which is a more fucky and weird (3v)
Parameters:
Path | the Path of the plist |
|---|---|
Image | (Optional) the image |
Returns:
Recently made Frames for your dispose ;)
staticfromEaselJS(Path:String, ?Image:Null<FlxGraphicAsset>):FlxAnimateFrames
EaselJS spritesheet format parser, pretty weird stuff.
Parameters:
Path | The Path of the jsFile |
|---|---|
Image | (optional) the Path of the image |
Returns:
New frames made for you to use ;)
staticinlinefromEdgeAnimate(Path:String, ?Image:Null<FlxGraphicAsset>):FlxAtlasFrames
Edge Animate
Parameters:
Path | the Path of the .eask |
|---|---|
Image | (Optional) the Image |
Returns:
Cute little Frames to use ;)
staticfromJson(Path:FlxJson, ?Image:Null<FlxGraphicAsset>):FlxAtlasFrames
- @param Path the Json in specific, can be the path of it or the actual json
Parameters:
Image | the image which the file is referencing WARNING: if you set the path as a json, it's obligatory to set the image! |
|---|
Returns:
A new instance of FlxAtlasFrames
staticfromSequence(Path:String, ext:String = "png"):FlxAtlasFrames
Compiles a sequence of images into one
Parameters:
Path | |
|---|---|
null | ext |
staticfromSparrow(Path:FlxSparrow, ?Image:Null<FlxGraphicAsset>):FlxAtlasFrames
a Sparrow spritesheet enhancer, providing for the 'add only the XML Path' workflow while adding support to Sparrow v1.
Parameters:
Path | The direction of the Xml you want to parse. |
|---|---|
Image | (Optional) the image of the Xml. |
Returns:
A new FlxAtlasFrames instance.
staticfromSpriteMap(Path:FlxSpriteMap, ?Image:Null<FlxGraphicAsset>):FlxAtlasFrames
Parses a spritemap, proceeding from a texture atlas export.
Parameters:
Path | |
|---|---|
Image |
Returns:
FlxAtlasFrames
staticfromStarling(Path:FlxSparrow, ?Image:Null<FlxGraphicAsset>):FlxAtlasFrames
Starling spritesheet format parser which uses a preference list from Mac computer shit
Parameters:
Path | the dir of the preference list |
|---|---|
Image | (Optional) the Image |
Returns:
Some recently cooked Frames for you ;)
staticfromTextureAtlas(Path:String):FlxAnimateFrames
Helper function to parse several Spritemaps from a texture atlas via fromSpritemap()
Parameters:
Path | The Path of the directory. |
|---|
Returns:
a new instance of FlxAnimateFrames.
See also:
fromSpriteMap()