Is there any template or documentation for SMBX2 Costumes?
Posted: Thu Jul 10, 2025 1:36 pm
by Rudy Red
I was planning to make costumes for SMBX2 (and skins for SM4J), and the sprite calibrator showed extra animations for kicking, running and posing, but changing the .ini file alone wasn't doing anything. The SMW skins do have these animations also with .ini files, but also with a costume.lua file, but I can't find where to make one. The documentation doesn't seem to have anything for this either.
Unless I'm missing something very obvious...
Re: Is there any template or documentation for SMBX2 Costumes?
Posted: Thu Jul 10, 2025 5:05 pm
by deice
if you were to look more into a costume.lua file you'd find it's nothing more than a normal lua library with its own onTick/onDraw/etc. events. there's no real "template" beyond knowing what cases you want to handle and how. the smw mario costume is probably a good point of reference for things like extra animations but in general creating a custom costume that goes beyond a graphical replacement requires a decent amount of knowledge of smbx's inner workings and the lunalua api (particularly the player class) so if you're not already quite comfortable with those, it might prove to be a challenge
Re: Is there any template or documentation for SMBX2 Costumes?
Posted: Thu Jul 10, 2025 6:33 pm
by Rudy Red
Gotcha, thanks.