Smoovement.lua 1.1

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Smoovement.lua 1.1

Postby underFlo » Fri Apr 29, 2016 5:58 pm

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:
Spoiler: show
Image
Download

Documentation

Also, unlike megaluavania this has a finished documentation as it isn't as expansive, but still super useful imo.
Last edited by underFlo on Sat Jul 30, 2016 3:05 pm, edited 2 times in total.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Smoovement.lua (Smooth animations of sprites)

Postby PixelPest » Fri Apr 29, 2016 7:09 pm

This looks fantastic. A quick question: can I use Sprite.rotation to rotate a player sprite/player sprites?

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Smoovement.lua (Smooth animations of sprites)

Postby underFlo » Fri Apr 29, 2016 7:13 pm

If you can get the player sprites as a LuaImageResource, you can use them in Smoovement. I dunno if that's already possible though.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: Smoovement.lua (Smooth animations of sprites)

Postby Hoeloe » Sat Apr 30, 2016 6:05 am

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.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Smoovement.lua (Smooth animations of sprites)

Postby underFlo » Sat Apr 30, 2016 6:25 am

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.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Smoovement.lua (Smooth animations of sprites)

Postby underFlo » Sat Jul 30, 2016 3:04 pm

Update!

https://www.dropbox.com/s/bszrn5gzu6p2k ... 1.zip?dl=1

Also check the updated documentation.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari