filharvey Posted November 22, 2013 Report Share Posted November 22, 2013 Is there a working version library for Starling AS3. I've tried both SpriterAS and SpriterMC, and the animations (I have the character pack) do not play back correctly with these versions. Thanks Phil Alealokato and IzbranniY 2 Quote Link to comment Share on other sites More sharing options...
filharvey Posted November 23, 2013 Author Report Share Posted November 23, 2013 So, could not find a version which worked with the latest version of Spriter, so I sat down and wrote some code to render properly with all the bones. I will be uploading to git soon if anyone needs a Starling version of the render working. Phil Quote Link to comment Share on other sites More sharing options...
filharvey Posted November 27, 2013 Author Report Share Posted November 27, 2013 Here is the basic code working. https://github.com/Acemobe/SpriterAS3Anim Phil Quote Link to comment Share on other sites More sharing options...
Bontom Posted November 27, 2013 Report Share Posted November 27, 2013 Here is the basic code working.https://github.com/Acemobe/SpriterAS3Anim Phil Thank You! Quote Link to comment Share on other sites More sharing options...
filharvey Posted December 7, 2013 Author Report Share Posted December 7, 2013 A small speed improvement was uploaded today. Quote Link to comment Share on other sites More sharing options...
filharvey Posted December 28, 2013 Author Report Share Posted December 28, 2013 Updated to support SCON files. Phil Quote Link to comment Share on other sites More sharing options...
toni Posted January 6, 2014 Report Share Posted January 6, 2014 Hi, i am trying to use your Spriter class but i can't get anything to appear on stage, I must be doing something wrong, can you please point me in right direction. package game{ import com.acemobe.spriter.Spriter; import starling.display.MovieClip; import starling.events.EnterFrameEvent; import starling.events.Event; import starling.animation.Juggler; import starling.core.Starling; import starling.display.Sprite; import starling.text.TextField; import starling.textures.Texture; import starling.textures.TextureAtlas; public class rootClass extends Sprite { [Embed(source="../../lib/test_sprite/player.scml",mimeType="application/octet-stream")] private var test_anim:Class; [Embed(source="../../lib/test_sprite/test.xml",mimeType="application/octet-stream")] private var test_xml:Class; [Embed(source="../../lib/test_sprite/test.png")] private var atlas:Class; private var player:Spriter; public function rootClass() { var texture:Texture = Texture.fromEmbeddedAsset(atlas); var xml:XML = XML(new test_xml()); var data:XML = XML(new test_anim()); var _atlas:TextureAtlas = new TextureAtlas(texture, xml); player = new Spriter("player", data, _atlas, ["player"], ["walk"]); player.playAnim("walk"); addChild(player); Starling.juggler.add(player); addEventListener(EnterFrameEvent.ENTER_FRAME, loop); } private function loop(e:EnterFrameEvent):void { Starling.juggler.advanceTime(e.passedTime); } }} atlas xml sample: ... also tried scml sample: i used texture packer to make atlas and xml data.. i am trying to play example Spriter file, if trace(time) from Spriter.as i can see it's advancing and anim == true but nothing is appearing on screen :/ Quote Link to comment Share on other sites More sharing options...
filharvey Posted February 22, 2015 Author Report Share Posted February 22, 2015 Updated the package again. Fix for rotation issue when a bone has a negative scale. Quote Link to comment Share on other sites More sharing options...
Mike at BrashMonkey Posted March 4, 2015 Report Share Posted March 4, 2015 Awesome work filharvey, Thanks very much. Cheers,Mike at BrashMonkey Quote Link to comment Share on other sites More sharing options...
ravewings Posted March 8, 2015 Report Share Posted March 8, 2015 What problem are you having with SpriterMC? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.