kindHurtBlock.lua - Unredigised hitboxes

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

Moderator: Userbase Moderators

MrDoubleA
Edward
Edward
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

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

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: kindHurtBlock.lua - Unredigised hitboxes

Postby Blake Izayoi » 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
Hoopster
Hoopster
Posts: 45
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
Eerie
Eerie
Posts: 799
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

tangy
Monty Mole
Monty Mole
Posts: 115
Joined: Tue Oct 23, 2018 11:32 pm
Flair: less is more

Re: kindHurtBlock.lua - Unredigised hitboxes

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

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

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 544
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
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
Buster Beetle
Buster Beetle
Posts: 91
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
Rocky Wrench
Rocky Wrench
Posts: 621
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
Buster Beetle
Buster Beetle
Posts: 91
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 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari