Page 1 of 1

Super Mario 3D world Long Jump + crawl

Posted: Mon Aug 19, 2019 6:20 am
by Bulby_VR
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.

Re: Super Mario 3D world Long Jump + crawl

Posted: Thu Aug 22, 2019 3:37 am
by Wiimeiser
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...

Re: Super Mario 3D world Long Jump + crawl

Posted: Fri Aug 30, 2019 11:30 pm
by GDKeptr
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

Re: Super Mario 3D world Long Jump + crawl

Posted: Mon Sep 02, 2019 4:28 am
by Wiimeiser
Probably because it forces crouch if there's a block above you, and sizables are considered blocks. Does it happen with clouds, too?

Re: Super Mario 3D world Long Jump + crawl

Posted: Thu Nov 21, 2019 6:24 pm
by Bulby_VR
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.