Spriter & Phaser – Runtime
Hi guys,
While I used Spriter the last time I participated and it was also a Phaser based game, I was not using a runtime.
I had exported the animations to a spritesheet.
This week, I found a TS Spriter+Phaser runtime implementation here: https://github.com/SBCGames/Spriter-Player-for-Phaser
With some changes (I am using webstorm, not visual studio – so i have a different typescript compiler than the author) I got it up and running. – for example I had to remove all properties and replace them with get/set methods to compile the ts.
This is a link to a gif showing a working spriter animation:
I put it all into one js file (and a minified version) so it can be used in any phaser js project. (I also added a d.ts file, so it’s useable in TS Phaser Projects.)
This download includes the resulting lib and a complete test project: http://jppresents.net/static/files/ld34ressource/SpriterRuntimeTest.rar
I will most likely use this in my game tomorrow.
