[lua pack] Other Easing (v1.0)

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

marioSuper21
Fighter Fly
Fighter Fly
Posts: 31
Joined: Thu Jul 31, 2025 8:43 am
Pronouns: he

[lua pack] Other Easing (v1.0)

Postby marioSuper21 » Mon Aug 18, 2025 9:29 pm

This file represents another easing function that is not present or updated from easing.lua. Currently there are only six functions but you can give me some ideas about the smooth transition from one value to another.

1. inSlowOutFast(elapsedTime, startValue, change, duration): Starts off at a normal pace then accelerates towards the end. Useful for starting or lunging movements.
Image

2. expoReverse(elapsedTime, startValue, change, duration): Reverse exponential movement starts very fast and then slows down gently until it stops at the target. Ideal for dash or sudden movements.
Image

3. wave(elapsedTime, startValue, change, duration, amplitude, frequency, decay): A smoothly repeating wave-like motion ideal for a "floating" effect or elements that move up and down with distance, such as water or clouds.
Image

4. overShootStart(elapsedTime, startValue, change, duration, overshoot): At first, he backs away quietly, then he quickly goes to the end.
Image

5. pulse(elapsedTime, startValue, change, duration, amplitude, frequency, sharpness): Like a pulse it expands and then comes back useful for effects when selecting something or when hitting.
Image

6. shake(elapsedTime, startValue, change, duration, amplitude, frequency): Shaking motion left and right or up and down is useful for shock effects, hitting or alerting the player.
Image

download
I hope you benefit from these effects. :D

Donkdonker124
Hoopster
Hoopster
Posts: 49
Joined: Wed Mar 27, 2024 10:31 am
Flair: Fictionally stronger than man
Pronouns: he/him
Contact:

Re: [lua pack] Other Easing (v1.0)

Postby Donkdonker124 » Tue Aug 19, 2025 5:37 pm

I never thought I'd see someone add more easing methods to the game, but here we are. These may come quite in handy!

MegaDood
Charged Spiny
Charged Spiny
Posts: 1834
Joined: Wed Nov 01, 2017 2:43 am

Re: [lua pack] Other Easing (v1.0)

Postby MegaDood » Fri Aug 22, 2025 6:37 am

This is really nice actually, thank you for this pack!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari