Sumo Bro Help

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
Cognition
Dolphin
Dolphin
Posts: 83
Joined: Sun Oct 05, 2014 10:13 pm

Sumo Bro Help

Postby Cognition » Thu May 05, 2022 3:41 pm

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 ;) )

deice
Volcano Lotus
Volcano Lotus
Posts: 576
Joined: Fri Jul 23, 2021 7:35 am

Re: Sumo Bro Help

Postby deice » Thu May 05, 2022 4:25 pm

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.

Cognition
Dolphin
Dolphin
Posts: 83
Joined: Sun Oct 05, 2014 10:13 pm

Re: Sumo Bro Help

Postby Cognition » Fri May 06, 2022 10:45 am

Thank you deice. I'll give this a shot.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari