Hey, folks. Here's my first go at the SDK. I needed a tween that could scale sprite fonts, and decided I wanted to take the code a different direction than LiteTween, so I wrote my own.
Twixt 0.53
[attachment=0:1fb7oug5][/attachment:1fb7oug5](This is packaged as a c2addon, but this forum doesn't like that extension. Just rename it to Twixt_0.53.c2addon for drag-and-drop install.)
Twixt is optimized for efficient, linear tweens. Easing is not supported. It can tween position, size, scale, angle, opacity, and Sprite Font scale.
Note that tweening Texts is a bad idea! WebGL handles non-bitmap fonts in a very inefficient manner. If you need to tween text, make sure it's a Sprite Font. I recommend using Sprite Font Generator and SpriteFont+ to make them as painless as possible.
Also note that this is a beta preview. Anything may be broken or become broken at any time. Use with caution! (The 1.0 release should be forthcoming in the not-too-distant future.)
If you find any bugs or have any suggestions, just let me know!
Thanks.
Docs
Most of it should be self-explanatory, but here are some details.
Scale
When scaling a sprite, the internal scale system is used as if the SetScale action had been called. When scaling other objects, the basic width and height properties are used and their start values are used as scale factor 1.
Expressions
StartA - Start value for position X, size width, scale factor, angle degrees, opacity percent, or font scale.
StartB - Start value for position Y or size height. Ignored for scale, angle, opacity, and font.
EndA - End value, as above.
EndB - End value, as above.
State
Start - Tween is stopped at the start position.
Forward - Tween is running from the start to the end.
Paused - Tween is paused between the start and end positions.
Reverse - Tween is running from the end to the start.
End - Tween is stopped at the end position.
Changelog
08/09/2014 - 0.53 - Fixed tweening only Y or height with unchanged X or width
08/08/2014 - 0.52 - Fixed scale of flipped/mirrored sprites
08/08/2014 - 0.51 - Fixed scale reverse end detection
08/08/2014 - 0.5 - Changed debug tweened and state values to their text equivalents (instead of their constant index)
08/07/2014 - 0.4 - Added "scale" as a property to tween
08/01/2014 - 0.3 - Added a condition to check the tween state
07/31/2014 - 0.2 - Revamped configuration actions and expressions
07/30/2014 - 0.1 - Initial release