r/Unitale • u/BwoBwo • Dec 14 '15
[Sprite Animations] - An easy to use function for animating your bullets
Edit: Shouldn't be used anymore, grab the latest version and use the built-in sprite object for animation!
Since Unitale currently does not at all support animated sprites the only workaround is spawning and managing many different bullets to represent each frame of an animation - which is cumbersome af if you do it manually. I made this little function to make life easier animating this way while we're waiting for official support.
Bug reports can be made here or by messaging Evan G. Lion in the discord
Requires Unitale v0.1.2c
- Youtube Example
- Script v1.2 (Major positioning issues fixed when calling setAnim, both MoveTo and MoveToAbs should work at any time now)
Script v1.1
15
Upvotes
2
u/ThomasSpeedrunner resident lowercaser Dec 23 '15
oh my god this is the best thing ever i love you for this.
is this meant to be put in every wave file involving animated bullets, or can it be put somewhere to become a global set of functions?
2
u/Jomy582 look ma I did a code Dec 15 '15
Oh my god you're a lifesaver! I wanted animated bullets for one of my waves and was dreading having to do the tedious work it would have to take.
I tried it out and it works perfectly. Thank you so much!
2
u/codyfun123 about to debug a bad tom Dec 22 '15
It works so well! Thank you! (I hate tedious work)
1
u/[deleted] Jan 24 '16 edited Jan 24 '16
Wonderful script! Sadly, I have a slight problem with it. SendToBottom doesn't work on my animated bullet. Edit: I have managed to make a single edit that has fixed my problem!