I’d like to share a new extension we’ve been working on: DeSpriter. It adds support for Spriter .scml animation files in Defold.
We made this because we needed a lightweight way to use bone-based animations from Spriter in our Defold projects, and we didn’t find any existing solution. So we built one and decided to open-source it.
Hello,
First of all, thank you very much for this extension. It looks like it will be very helpful in my projects. However, I couldn’t get it to work properly. I’m a beginner game developer, so I might have made a mistake somewhere.
I’m getting an error like this. The sprite is also not loading properly on the screen.
I’m also sharing the project files in case you want to check them. I’m using the character and animation set provided by Spriter Pro. Spriter deneme.zip (676.2 KB)
Thank you for testing. I was able to confirm it’s a bug (I’ll fix it and let you know here). There’s also an issue with the scale and how the bones are referenced
I was able to reproduce the same issue here. In Defold (and other engines as well), when a parent game object has non-uniform scaling, it will distort rotated child sprites (as seen with the spider).
To fix this, I created a fix_scale function that applies the scale directly to sprites and recalculates their position accordingly.
Good job, I made an account just for this haha, I’m considering using Defold for a project and spriter is my main animation software in haxe. I’m wondering if you’re planning to support character maps like these https://www.youtube.com/watch?v=H5nq8Weam7s
Or any way to swap parts? That’s a pretty important feature for me but I don’t know if you guys need it too, cheers.
It seems to be a useful feature. I’ll try to implement it during my next free days. I saw that it’s a Spriter Pro feature. I might need to purchase a license to test it.