Page 1 of 1

Custom Effects Not Rendering

Posted: Sun Jul 16, 2023 7:57 pm
by mariobrigade2018
So I have this Beach Koopa effect that will only show his head when killed.


Image

Here's the effect.


Image

Hope this is enough info.

Re: Custom Effects Not Rendering

Posted: Mon Jul 17, 2023 4:59 am
by deice
effects with ids smaller than 161 cannot have their size changed (at least not without manual rendering via lua). the effect in question is 32x32, so only the top half of what's supposed to be each frame renders.

Re: Custom Effects Not Rendering

Posted: Mon Jul 17, 2023 5:05 am
by Emral
deice wrote:
Mon Jul 17, 2023 4:59 am
effects with ids smaller than 161 cannot have their size changed (at least not without manual rendering via lua). the effect in question is 32x32, so only the top half of what's supposed to be each frame renders.
Not entirely true, as most effects of that sort are affected by width/height/gfxwidth/gfxheight of the associated NPC. But it could be that beach koopas are a special case. Would need to see the NPC config for these beach koopas.

Re: Custom Effects Not Rendering

Posted: Mon Jul 17, 2023 5:13 am
by deice
Emral wrote:
Mon Jul 17, 2023 5:05 am
Not entirely true, as most effects of that sort are affected by width/height/gfxwidth/gfxheight of the associated NPC. But it could be that beach koopas are a special case. Would need to see the NPC config for these beach koopas.
i checked the source code and you're actually right, in this case it does depend on the physical height of the npc. so, if op were willing to extend the beach koopas' hitboxes to be a full 52 pixels tall (to match the custom graphic), the effect would render correctly without the need for any lua shenanigains.

Re: Custom Effects Not Rendering

Posted: Tue Jul 18, 2023 12:34 am
by mariobrigade2018
OK. Will do. Thanks Guys!