Have you ever made a level with water or lava and thought: "man, placing these things sure is tiring, huh". Well, fear not, because we're in the future and LunaLua can do that just for you!
easyliquids.lua is a library made to easily fill sections with water or lava, but it also provides some advanced features to customize them and make them move in funny and convenient ways! Here's an example:
Image may be NSFW.
Clik here to view.
To use the library, unzip the easyliquids.zip file into your custom level folder. Then, create a luna.lua file (if you haven’t already made one) and insert this line of code:NOTE: The library is only compatible with SMBX2 Beta 5.
NOTE: By default, the library uses the SMM2 styled water included in the zip file. If you don’t need it, you can avoid copying the image file to your level folder.
NOTE: If you’re using respawnRooms.lua, add this code to your luna.lua file to make the library work properly on respawn:
Here you can find some proper explanation of every feature, with some more examples:
Documentation
Finally, here's the download:
Download
easyliquids.lua is a library made to easily fill sections with water or lava, but it also provides some advanced features to customize them and make them move in funny and convenient ways! Here's an example:
code: show
Clik here to view.

To use the library, unzip the easyliquids.zip file into your custom level folder. Then, create a luna.lua file (if you haven’t already made one) and insert this line of code:
Code:
local easyliquids = require("easyliquids")
NOTE: By default, the library uses the SMM2 styled water included in the zip file. If you don’t need it, you can avoid copying the image file to your level folder.
NOTE: If you’re using respawnRooms.lua, add this code to your luna.lua file to make the library work properly on respawn:
Code:
function respawnrooms.onPostReset(fromRespawn) easyliquids.initLiquids()end
Documentation
Finally, here's the download:
Download
Statistics: Posted by Akromaly — Sun Feb 18, 2024 1:51 pm