The Devious Dump Of Lua Libraries

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

Moderator: Userbase Moderators

DeviousQuacks23
Bot
Bot
Posts: 56
Joined: Tue Apr 11, 2023 9:29 am
Flair: Decent at LunaLua coding.
Pronouns: him

The Devious Dump Of Lua Libraries

Postby DeviousQuacks23 » Wed Jun 11, 2025 8:36 am

Image

Hello again, this is a collection of my previously released scripts for SMBX2.
Oh, and future scripts will be added to this pack as well.

Enjoy!



splishSplash.lua


A small library that adds some new effects for splashing.
Quicksand support is included, and NPC support is included too. It is also multiplayer compatible.
You can customize the effects and the sounds, and there are options to disable NPC and quicksand splashes.

Image

To use the library, simply put this code into your luna.lua file:

Code: Select all

local splishSplash = require("splishSplash")


smm2Physics.lua


A small standalone library that contains the physics tweaks from Cpt. Mono's SMM2 costumes.
You can get the SMM2 costumes here.

To use the library, simply put this code into your luna.lua file:

Code: Select all

local smm2Physics = require("smm2Physics")
When using this, give credit to Cpt. Mono as well!



autoscrollDX.lua


A fork of the basegame autoscroll.lua, that fixes incompatibilities with widescreen and smallscreen.
It also changes onLoop (which is outdated) to onTick.

To use the library, simply put this code into your luna.lua file:

Code: Select all

local autoscroll = require("autoscrollDX")
If you're using this library on an existing level that already has the basegame autoscroll, you'll have to
replace the line that loads the module with this line.
Now, just use the module like you would with the basegame autoscroll.



Download

Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari