Page 1 of 1

Sumo Bro Help

Posted: Thu May 05, 2022 3:41 pm
by Cognition
Not sure if this is an offset thing again, but my guess is that the Sumo Bro is just too large. Is there a way to fix this in Lunalua and how would I go about doing that? Thank you in advance.

Image
Files:
Spoiler: show
Image
Image
gfxwidth=106
gfxheight=90
width=106
height=90
(Graphics are a work in progress ;) )

Re: Sumo Bro Help

Posted: Thu May 05, 2022 4:25 pm
by deice
the sumo bro creates lightning at it's center of mass, which doesn't account for big sumo bros. sadly, there's no way to fix this without creating your own sumo bro, as this offset is hardcoded into the script.

copy the sumo bro code from the basegame into your episode and give it an id within the custom range (751-1000). rename the sprite and txt file to match that id and then go into the script, go to line 104 and replace

Code: Select all

v.y + 0.5 * v.height
with

Code: Select all

v.y + v.height - 14
which is not ideal but should work for your use case. (also if you care about having it look nice in the editor you should make an ini file for it too)

enjl is the one that made the sumo bro so if you yell at him enough this might get a more proper fix in the next update.

Re: Sumo Bro Help

Posted: Fri May 06, 2022 10:45 am
by Cognition
Thank you deice. I'll give this a shot.