Page 1 of 1
kindHurtBlock.lua - Unredigised hitboxes
Posted: Wed Dec 08, 2021 4:39 pm
by MrDoubleA
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.
Download
Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Wed Dec 08, 2021 6:47 pm
by Blake Izayoi
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!
Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Mon Dec 13, 2021 6:50 pm
by HunnyBon
This is awesome! Definitely would give a more fair margin of error for all types of levels.

Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Tue Dec 14, 2021 10:56 pm
by FutureNyanCat
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

Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Tue Jan 11, 2022 11:05 am
by tangy
wondering why block-672 (smw hurt block) isnt included here
Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Wed Jan 12, 2022 12:08 am
by Marioman2007
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
Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Thu Dec 22, 2022 2:31 am
by AppleTheTomato
So, it seems that overlapping lava blocks with normal blocks makes things goofy.
This is WITH kindHurtBlocks:

And this is without:

Obviously you can't fix the latter, but maybe a fix can be applied to the former two?
Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Thu Dec 22, 2022 3:22 am
by deice
AppleTheTomato wrote: ↑Thu Dec 22, 2022 2:31 am
So, it seems that overlapping lava blocks with normal blocks makes things goofy.

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.
Re: kindHurtBlock.lua - Unredigised hitboxes
Posted: Thu Dec 22, 2022 10:36 pm
by AppleTheTomato
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.

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