GithubHelp home page GithubHelp logo

spriteras3anim's Introduction

SpriterAS3Anim

AS3 code to animate Spriter Animations.

var	atlas:TextureAtlas = mAssetManager.getTextureAtlas("player-atlas");		// load the texture atlas
var	xml:XML = mAssetManager.getXml("player");								// load the scml
var	name:String = "player";
var 	anim:String = "idle";

var	s:Spriter = new Spriter (name,anim, xml, atlas);								// create an instance of a spriter animation
s.play ("idle");

addChild(s);
Starling.juggler.add(s);

spriteras3anim's People

Contributors

filharvey avatar loudoweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spriteras3anim's Issues

Not working with Starling 2.0

Not working with starling 2.0 currently... But it is easy to upgrade (QuadBatchs -> MeshBatch) except one thing - quadBatch.setQuadColor

Are there any plans to update package? And support it futher? :)
Anyway, thank you for your great work with supporting Spriter

Broken legacy code due to removal of atlas parameter in constructor

I'm not sure why it was done, but you've made it far more cumbersome to assign an atlas to the animation. Rather than a single place, we now apparently can only assign an atlas to the currently used entity? I would prefer to see the ability to assign the atlas specifically, but also keep the original, legacy constructor code, so all of my projects don't break and require re-writing when updating with the new source.

I actually have not had any situation that called for unique atlas sets between animation entities on the same spriter. If I need to change a texture set (for costuming or theming) they will typically be in one atlas for all of a set of animations per theme or costume.

The way it is set up now, however, I think it is even more difficult to actually use.

Thanks for the hard work, though... on a side note, I'm making good use of the color tinting (Vertex coloring) to provide some differentiation in some of the characters on one of my projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.