kindHurtBlock.lua - Unredigised hitboxes

Share and discuss custom LunaLua code and content packs for SMBX2.
MrDoubleA
Flurry
Flurry
Posts: 351
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?
Pronouns: he/him

kindHurtBlock.lua - Unredigised hitboxes

Postby MrDoubleA » Wed Dec 08, 2021 4:39 pm

Little library I wrote in about 10 minutes for my mystery contest submission. It decreases the hitbox size of harmful blocks, to make them more forgiving. The amount it's decreased by is customisable.

Image

Download

Hatsune Blake
Posts: 570
Joined: Sun Feb 23, 2014 1:55 pm
Pronouns: He / Him

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby Hatsune Blake » Wed Dec 08, 2021 6:47 pm

This is an absolutely incredible library that I can see being used for a lot of projects. It's so simple! I'm surprised it hasn't been made sooner. Thank you for creating this!

HunnyBon
Fighter Fly
Fighter Fly
Posts: 44
Joined: Tue Dec 30, 2014 8:51 am
Flair: Y'ever just jhdsfhdsjkh

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby HunnyBon » Mon Dec 13, 2021 6:50 pm

This is awesome! Definitely would give a more fair margin of error for all types of levels. :D

FutureNyanCat
Rocky Wrench
Rocky Wrench
Posts: 648
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby FutureNyanCat » Tue Dec 14, 2021 10:56 pm

I'm absolutely going to use this somewhere, especially with how tight the lava hitboxes are in vanilla SMBX, which makes them unideal for tight lava sections that involve skull rafts and platforming. With credit, I guess :P

tangeruse
Dolphin
Dolphin
Posts: 94
Joined: Tue Oct 23, 2018 11:32 pm
Flair: less is more

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby tangeruse » Tue Jan 11, 2022 11:05 am

wondering why block-672 (smw hurt block) isnt included here

Marioman2007
Buster Beetle
Buster Beetle
Posts: 401
Joined: Tue Aug 25, 2020 3:19 am
Pronouns: He/Him

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby Marioman2007 » Wed Jan 12, 2022 12:08 am

tangeruse wrote:
Tue Jan 11, 2022 11:05 am
wondering why block-672 (smw hurt block) isnt included here
you could edit "kindHurtBlock.directions" table to include other blocks

AppleTheTomato
Fighter Fly
Fighter Fly
Posts: 47
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby AppleTheTomato » Thu Dec 22, 2022 2:31 am

So, it seems that overlapping lava blocks with normal blocks makes things goofy.
This is WITH kindHurtBlocks:
Image
Image
And this is without:
Image
Obviously you can't fix the latter, but maybe a fix can be applied to the former two?

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

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby deice » Thu Dec 22, 2022 3:22 am

AppleTheTomato wrote:
Thu Dec 22, 2022 2:31 am
So, it seems that overlapping lava blocks with normal blocks makes things goofy.

Image
looks like it's something else you have loaded that's causing it. i've personally experienced a similar bug (player sinking into blocks when overlapping with a hurt block's hitbox) without even using kindhurtblock, so if you're using a costume it could be that, or maybe a different library that the level's using.

AppleTheTomato
Fighter Fly
Fighter Fly
Posts: 47
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby AppleTheTomato » Thu Dec 22, 2022 10:36 pm

deice wrote:
Thu Dec 22, 2022 3:22 am
AppleTheTomato wrote:
Thu Dec 22, 2022 2:31 am
So, it seems that overlapping lava blocks with normal blocks makes things goofy.
Image
looks like it's something else you have loaded that's causing it. i've personally experienced a similar bug (player sinking into blocks when overlapping with a hurt block's hitbox) without even using kindhurtblock, so if you're using a costume it could be that, or maybe a different library that the level's using.
I would agree, but if I comment out kindHurtBlocks, the glitch is non present. Even with a less modified player (that Yellow Toad uses the SMW Costume Code), it STILL happens when kindHurtBlocks is enabled. So IDK


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest