britzl / defold-richtext

Defold-RichText is a system to create styled text based on an HTML inspired markup language
MIT License
75 stars 12 forks source link

Spine animation support? #13

Closed subsoap closed 6 years ago

subsoap commented 6 years ago

Like texture it would be useful for animated emoticons with lower space requirements

britzl commented 6 years ago

I realised when testing that spine animations are a bit tricker. They always have a size of 1x1 and ignore pivot. This is to some extent understandable since the bounding box of a spine animation will change over time while animating.

But it also makes it hard to position spine models together with text in a gui. Animated emoticons like you suggested should probably use normal flipbook animations instead.

britzl commented 6 years ago

Added support for spine models. Spine models will be aligned to bottom of line. You need to manually add space characters around the model since size isn't reported.

https://github.com/britzl/defold-richtext/releases/tag/2.7.0