Page 1 of 1
Smoovement.lua 1.1
Posted: Fri Apr 29, 2016 5:58 pm
by underFlo
Smoovement.lua is an API that provides some neat animation help, as well as scaling and rotating sprites and parent-child relationships.
Gif of it in action using a custom Inkling sprite in my Megaluavania API:
Download
Documentation
Also, unlike megaluavania this has a finished documentation as it isn't as expansive, but still super useful imo.
Re: Smoovement.lua (Smooth animations of sprites)
Posted: Fri Apr 29, 2016 7:09 pm
by PixelPest
This looks fantastic. A quick question: can I use Sprite.rotation to rotate a player sprite/player sprites?
Re: Smoovement.lua (Smooth animations of sprites)
Posted: Fri Apr 29, 2016 7:13 pm
by underFlo
If you can get the player sprites as a LuaImageResource, you can use them in Smoovement. I dunno if that's already possible though.
Re: Smoovement.lua (Smooth animations of sprites)
Posted: Sat Apr 30, 2016 6:05 am
by Hoeloe
Can you create an empty parent object? That is, an object with a transform, but without a sprite associated with it? This could be useful for some complex animations.
I'd also recommend locking off a lot of those variables using metatables. You don't want people altering the parent and child list directly, for example, because that could break the rendering.
Re: Smoovement.lua (Smooth animations of sprites)
Posted: Sat Apr 30, 2016 6:25 am
by underFlo
Hoeloe wrote:Can you create an empty parent object? That is, an object with a transform, but without a sprite associated with it? This could be useful for some complex animations.
I'd also recommend locking off a lot of those variables using metatables. You don't want people altering the parent and child list directly, for example, because that could break the rendering.
Yeah.
Also, that's a good idea. Gonna do that.
Re: Smoovement.lua (Smooth animations of sprites)
Posted: Sat Jul 30, 2016 3:04 pm
by underFlo