Var skeletonData : SkeletonData = json.readSkeletonData(new SpineboyJson()) īut when I try to assign it like this I get an error that the texture is null var json : SkeletonJson = new SkeletonJson(new StarlingAtlasAttachmentLoader(sAssets.getTextureAtlas("p2-wind-atlas"))) Var json : SkeletonJson = new SkeletonJson(attachmentLoader) Var spineAtlas : Atlas = new Atlas(new SpineboyAtlas(), new StarlingTextureLoader(new SpineboyAtlasTexture())) ĪttachmentLoader = new AtlasAttachmentLoader(spineAtlas) Private var skeleton : SkeletonAnimation Static public const SpineboyAtlasTexture : Class Static public const SpineboyAtlas : Class Static public const SpineboyJson : Class SAssets.getObject("p2-wind-json") returns the json loaded via AssetManagerįor example this works: SAssets.getTextureAtlas("p2-wind-atlas") returns the atlas loaded via AssetManager You can access loaded assets like this from the AssetManager The AssetManager loads the ATLAS, JSON and PNG files and creates their relative objects. I only have FB 4.7 available, I only use the latest AIR SDK 14.no Flex Is there anyone here that can help me with this?Īre there any Starling users here? I'm still stuck on this Skeleton = new SkeletonAnimation(skeletonData, true, stateData) Var stateData : AnimationStateData = new AnimationStateData(skeletonData) Var skeletonData : SkeletonData = json.readSkeletonData(sAssets.getObject("p2-wind-json")) Here is a snippet from the StarlingSpineAssetManagerExample project: var json : SkeletonJson = new SkeletonJson(new StarlingAtlasAttachmentLoader(sAssets.getTextureAtlas("p2-wind-atlas"))) **FDT also shows an error with some of the Math in SkeletonJson.as (see attached png below) StarlingSpineAssetManagerExample - loads the assets via AssetManager but I get stuck when I try to access the AssetManager while creating SkeletonJson and SkeletonData. StarlingSpineSimple - works like the included Starling Examples. I've included my 2 sample projects from FDT and test Spine project Hi there, I was able to get the Spine Starling examples working but I need to be able to use the AssetManager in Starling.Įmbedding the assets inline won't work when the app has lots of assets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |