Super Mario 3D world Long Jump + crawl

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

Super Mario 3D world Long Jump + crawl

Postby Bulby_VR » Mon Aug 19, 2019 6:20 am

Super Mario 3D World Long Jump and Crawl
Version 1.3
Features: Supports PAL characters and everyone (with prefered morphs)
Doesn't break with Link's or Uncle Broadsword's downward sword
Supports 2 player
"Fixes" wall clip bug
Changelog:
Spoiler: show
You don't bug out when using Uncle Broadsword's downward sword move
Added support for all PAL characters
Peach no longer becomes small during crawl is her hitbox is (apparently) bigger than one block.

Download: http://www.mediafire.com/file/cfi1p49xt ... l.lua/file
You have to add this into your luna file:

Code: Select all

local sm3dwMove = API.load("sm3dwMovePal")
If you want to change how much speed the long jump adds, add this to your luna lua file

Code: Select all

sm3dwMove.speed = 1.5;
The default for speed added is 1.5.
You can also change if characters can change their character while crawling by adding

Code: Select all

sm3dwMove.allowCharacterTransform = true;
The default is true.
Warning: Klonoa can't run, and will always be able to long jump unless standing still
This is also either a bit laggy, or I shouldn't be using a Surface Pro 6 to make this stuff.
This rounds some characters speed (I'm looking at you Megaman), so don't assume the character can make jumps without testing.
Version 1.2
Spoiler: show
Changelog:
Spoiler: show
Fixed bug when entering two block tall gaps, you would flicker and be very hard to move
Fixed bug where you would crouch while within a sizable block.

Download: http://www.mediafire.com/file/e6e1eb5yj ... 9.lua/file
To use this put this in your level or episode folder, and in your luna file put:

Code: Select all

local sm3dwMove = API.load("sm3dwMove")
If you want to change how much speed the long jump adds, do this:

Code: Select all

local sm3dwMove = API.load("sm3dwMove"); sm3dwMove.speed = (Speed to add);
The default for speed added is 1.5.

This will force all characters that aren't Toad to have a run speed of 6, while Toad has one of 6.42.
Last edited by Bulby_VR on Thu Nov 28, 2019 1:43 pm, edited 2 times in total.

Wiimeiser
Snifit
Snifit
Posts: 215
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?

Re: Super Mario 3D world Long Jump + crawl

Postby Wiimeiser » Thu Aug 22, 2019 3:37 am

Maybe you could add a feature to give different characters different speeds? Though I don't know how this will work with the additional characters...

GDKeptr
Chain Chomp
Chain Chomp
Posts: 310
Joined: Fri May 04, 2018 12:04 am
Flair: Yo. I love to create stuff and inspire others.
Pronouns: He/Him
Contact:

Re: Super Mario 3D world Long Jump + crawl

Postby GDKeptr » Fri Aug 30, 2019 11:30 pm

I was testing the script and there is one problem I found while just messing around with it. When a player goes in the sizable block, it suddenly crouches. But when it's not in it, he doesn't crouch.
Image

Wiimeiser
Snifit
Snifit
Posts: 215
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?

Re: Super Mario 3D world Long Jump + crawl

Postby Wiimeiser » Mon Sep 02, 2019 4:28 am

Probably because it forces crouch if there's a block above you, and sizables are considered blocks. Does it happen with clouds, too?

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

Re: Super Mario 3D world Long Jump + crawl

Postby Bulby_VR » Thu Nov 21, 2019 6:24 pm

Sorry for ignoring this so long.
The bug is caused by code that prevents you from standing up in 1 block wide tall gaps, as you can crawl instead of having to clip.
There is an exception list that is there and I will add all of the semi solid IDs into that list

I'll post an update after I make it.

Edit: Because it's an exception list, if that is a custom semisolid it will definitely not play nice, and cause the player to crouch. Maybe I could add custom IDs to add? Or maybe the force crouch system in general is broken and needs fixed.

Added in 24 minutes 3 seconds:
The culprit was the exception list wasn't being used properly; Instead of iterating it just has an equal sign;
This should fix the bug.
https://www.mediafire.com/file/k9lm1kb6 ... 2.lua/file
Even though the file name is different, you still use the same stuff as the original post.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 5 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari