playerphysicspatch.lua - smbx controls like gunk

Share and discuss custom LunaLua code and content packs for SMBX2.
BrokenAce
Swooper
Swooper
Posts: 50
Joined: Sat Feb 06, 2016 11:48 am

Re: playerphysicspatch.lua - smbx controls like gunk

Postby BrokenAce » Sun Jul 10, 2022 3:39 pm

I just tried this out in Beta 4 and it does absolutely nothing. What gives? Am I missing something?

Ness-Wednesday
Purple Yoshi Egg
Purple Yoshi Egg
Posts: 1544
Joined: Sun Jun 28, 2015 3:50 pm
Flair: Diverse Scouts
Pronouns: He/Him

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Ness-Wednesday » Sun Jul 10, 2022 3:46 pm

BrokenAce wrote: I just tried this out in Beta 4 and it does absolutely nothing. What gives? Am I missing something?
Did you try loading the API in a local Lua file?

BrokenAce
Swooper
Swooper
Posts: 50
Joined: Sat Feb 06, 2016 11:48 am

Re: playerphysicspatch.lua - smbx controls like gunk

Postby BrokenAce » Sun Jul 10, 2022 5:07 pm

Ness-Wednesday wrote:
Sun Jul 10, 2022 3:46 pm
BrokenAce wrote: I just tried this out in Beta 4 and it does absolutely nothing. What gives? Am I missing something?
Did you try loading the API in a local Lua file?

What's an API? If that's an alternate name for the code itself then yes I have tried that.

Edit: Never mind, just me being a noob. Turns out just I forgot to put the Require in my luna.lua.
Last edited by BrokenAce on Thu Aug 18, 2022 4:42 pm, edited 1 time in total.

deice
Buster Beetle
Buster Beetle
Posts: 442
Joined: Fri Jul 23, 2021 7:35 am

Re: playerphysicspatch.lua - smbx controls like gunk

Postby deice » Sun Jul 10, 2022 5:16 pm

BrokenAce wrote:
Sun Jul 10, 2022 5:07 pm
What's an API? If that's an alternate name for the code itself then yes I have tried that.
just for the record, i believe they mean "library" and not "API". an API is something else entirely.
in any case, if creating a file called "luna.lua" in the episode/level folder and placing

Code: Select all

require("playerphysicspatch") 
inside doesn't work then it's hard to say what the problem might be if you have no other libraries loaded which could be interfering.

BrokenAce
Swooper
Swooper
Posts: 50
Joined: Sat Feb 06, 2016 11:48 am

Re: playerphysicspatch.lua - smbx controls like gunk

Postby BrokenAce » Wed Aug 24, 2022 8:09 pm

Yoshi Milkman wrote:
Sun Sep 13, 2020 6:55 pm
A fix to this would be greatly appreciated
JamesR624 wrote:
Wed Jul 29, 2020 3:18 pm
This is awesome but I do wanna mention that it seems to really mess up "slippery physics". Now anything with the slippery property is more like slime. It INCREASES friction with this patch on as opposed to decreasing which is what it's supposed to do.

I actually found a fix for this; if you change 0x3C to 0x0A on the 25th line, it'll disable the patch for players who are touching ice. However, since this is an edit to the slope-sliding patch, it also comes at the sacrifice of smooth slope sliding. There's probably a way to have both "fixes" active at once, if you know your way around the code (unfortunately I don't).

MarioChallengerX2
Rex
Rex
Posts: 31
Joined: Sat Dec 31, 2022 4:34 pm
Pronouns: he/him

Re: playerphysicspatch.lua - smbx controls like gunk

Postby MarioChallengerX2 » Sat Jan 07, 2023 9:36 pm

Uh, I'm blind. I can't tell what's different here. Is it speed? Or smoother control?

MrDoubleA
Flurry
Flurry
Posts: 351
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?
Pronouns: he/him

Re: playerphysicspatch.lua - smbx controls like gunk

Postby MrDoubleA » Sun Jan 08, 2023 9:05 am

MarioChallengerX2 wrote:
Sat Jan 07, 2023 9:36 pm
Uh, I'm blind. I can't tell what's different here. Is it speed? Or smoother control?
Faster acceleration and deceleration. Also, you decelerate in the air.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest