HxSpriter is the Haxe implementation of the Spriter application and file format. It’s a port a the SpriterAS3 lib, but working with NME. It basically lets you use Spriter with your games or applications.
Spriter is a powerful animation tool for creating highly detailed 2d real-time game characters and effects in an intuitive, visual editor. The characters are saved to a format that allows game engines to produce higher quality visuals, while also using less video ram, and requiring less disk space per frame than traditional 2d sprite animation. Spriter also provides several game specific features like collision boxes, and sound effect triggering, and saves to an open format that will be useable across many different game engines and platforms.
Spriter is currently in an usable beta state, but it’s really subject to changes, so the various implementations might stop working from a version to another, and they will need constant updating. The file format may also get incompatible across future versions, and the application may cause some crashes. For these reasons, Spriter is not production ready, but you can test it and play with it if you want.
To use it, just install it from haxelib :
In your NME file, you have to define a sprites directory (just rename the directory where you have all your Spriter’s animations).
Now, if you want to use the library :
Or with the Flixel port :
Or with HaxePunk :
You can also checkout the repository : https://github.com/po8rewq/hxSpriter.