noFloatingDoors.lua

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

Moderator: Userbase Moderators

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

noFloatingDoors.lua

Postby Bulby_VR » Wed May 06, 2020 10:12 pm

Update:
This now applies to pipes (except upward facing ones) and doors. You have to be on the same level as the warp pipe and be grounded, so if you don't align to grid some jank will probably happen.
Demo:

Download: http://www.mediafire.com/file/4dme65b7w ... s.lua/file
Also applies underwater, same as SMM2
put this in your luna lua after putting file in local/episode:

Code: Select all

local noFloatingDoors = require("noFloatingDoors");
Old Versions:
Spoiler: show
I'm disappointed this isn't in the base game, but whatever.
This addon locks your up key if you are close to a door and are airborne, in effect making it impossible to enter.
The check boundary is fairly big, and I'm sure some jank will arise.
Here's the link.
Also does the same underwater, don't @ me I checked with SMM2.
should of put this in at first but to add this, drop the file in your local or episode folder and write this in your luna.lua:

Code: Select all

local noFloatingDoors = require("noFloatingDoors");
Last edited by Bulby_VR on Fri May 08, 2020 11:11 am, edited 3 times in total.

Eri7
Banned
Posts: 1770
Joined: Sat Jan 28, 2017 4:48 pm
Flair: Good Foundation allows for strong Execution
Contact:

Re: noFloatingDoors.lua

Postby Eri7 » Thu May 07, 2020 3:35 am

I believe this is not in basegame/no other people have done a similar script to this one yet because we have got so accustomed to SMBX's physics that we probably don't want them to be able to change, but I believe this would help a lot in making Mario Maker like inspired levels or special kinds of puzzles. Good job!

IAmPlayer
Volcano Lotus
Volcano Lotus
Posts: 560
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Pronouns: he/him
Contact:

Re: noFloatingDoors.lua

Postby IAmPlayer » Thu May 07, 2020 4:11 am

I know that this library is so self-explanatory or simple, but shouldn't there be at least a screenshot or gif recording, based on the guideline?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: noFloatingDoors.lua

Postby Emral » Thu May 07, 2020 4:11 am

Does this also work on sideways pipes? Once we have episode-wide settings this might be fun as a basegame option (alongside things like walljump, screen resolution, etc...). Opens up some fun setup ideas for sure, thanks for make!

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: noFloatingDoors.lua

Postby Bulby_VR » Thu May 07, 2020 9:55 am

No, this only checks for doors. I'll check with SMM2 if you can enter sideways pipes
Video SOON™

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: noFloatingDoors.lua

Postby Emral » Thu May 07, 2020 10:00 am

Bulby_VR wrote:
Thu May 07, 2020 9:55 am
No, this only checks for doors. I'll check with SMM2 if you can enter sideways pipes
Video SOON™
In official mario titles, the only non-instant warp you can enter while airborne is the upwards facing pipe. The three other pipe directions and the door require you to be on the ground.

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: noFloatingDoors.lua

Postby Bulby_VR » Thu May 07, 2020 11:51 am

fixed the sideways pipes
you have to be inline with the warp, so if you are 50 units lower than the warp you cannot enter it
keep this in mind while making levels
update as soon as video is recorded

Added in 38 minutes 43 seconds:
updated check top post


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari