splishSplash.lua - improved splashing effects!

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

Moderator: Userbase Moderators

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

splishSplash.lua - improved splashing effects!

Postby DeviousQuacks23 » Sat Mar 22, 2025 8:21 am

Just 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")
Download
(Please give credit!)
Last edited by DeviousQuacks23 on Tue Mar 25, 2025 3:36 am, edited 1 time in total.

Master of Disaster
Bit
Bit
Posts: 62
Joined: Sun Nov 28, 2021 9:29 am
Flair: Average Koopa Fan
Pronouns: he/him

Re: splishSplash.lua - improved splashing effects!

Postby Master of Disaster » Sun Mar 23, 2025 7:02 pm

Oh this is lovely! Vastly prefer this effect over the basegame water effect

Alucard648
Tweeter
Tweeter
Posts: 170
Joined: Sun Aug 16, 2015 3:45 am

Re: splishSplash.lua - improved splashing effects!

Postby Alucard648 » Thu Apr 03, 2025 10:06 am

Speaking of splash: will it be possible to have lava splash, when player/NPC dies by falling into lava? And what about entering physical enviropment zones from sides?

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

Re: splishSplash.lua - improved splashing effects!

Postby DeviousQuacks23 » Fri Apr 04, 2025 4:24 am

We already have lava splashes, and it wouldn't make much sense to create a splashing effect from the sides.

PizzaNoob
Fighter Fly
Fighter Fly
Posts: 47
Joined: Wed May 29, 2024 8:36 pm
Flair: I like to make comics!
Pronouns: he/him

Re: splishSplash.lua - improved splashing effects!

Postby PizzaNoob » Wed Apr 16, 2025 10:29 am

Hey, i found an error. It's saying something about a timer in the script.

Image

Retro
2025 Egg Hunter
2025 Egg Hunter
Posts: 260
Joined: Thu Jul 25, 2024 5:34 am
Flair: Frankly, my dear, I don't give a damn.
Pronouns: Mario

Re: splishSplash.lua - improved splashing effects!

Postby Retro » Wed Apr 16, 2025 2:11 pm

PizzaNoob wrote:
Wed Apr 16, 2025 10:29 am
Hey, i found an error. It's saying something about a timer in the script.

Image
what caused it in the first place?

PizzaNoob
Fighter Fly
Fighter Fly
Posts: 47
Joined: Wed May 29, 2024 8:36 pm
Flair: I like to make comics!
Pronouns: he/him

Re: splishSplash.lua - improved splashing effects!

Postby PizzaNoob » Wed Apr 16, 2025 2:46 pm

Retro wrote:
Wed Apr 16, 2025 2:11 pm
PizzaNoob wrote:
Wed Apr 16, 2025 10:29 am
Hey, i found an error. It's saying something about a timer in the script.

Image
what caused it in the first place?
I use easyliquids.lua (by Akromaly) throughout my levels. I ultimatly thought that the script caused this error, but checking other levels that uses easyliquids seem to work perfectly fine. Even by taking out the lua that creates the liquids, the error still shows up. I have no idea how to fix it if it only shows up for two of the levels I've made.

I was also just testing out one of the levels and turns out the script acts weird with MrDoubleA's SMM2 key AI. As for the other level with the problem, I don't know...

Added in 2 hours 34 minutes 27 seconds:
Ok, I found a solution. I justed changed all instances of "data.timer" to "timer" (and removed it from the data table), making it a basic variable.

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

Re: splishSplash.lua - improved splashing effects!

Postby DeviousQuacks23 » Fri Apr 18, 2025 5:33 am

PizzaNoob wrote:
Wed Apr 16, 2025 10:29 am
Hey, i found an error. It's saying something about a timer in the script.

Image
Fixed


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari