Is there any template or documentation for SMBX2 Costumes?

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Rudy Red
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon Aug 22, 2022 11:31 am
Flair: Back with great ambition!
Pronouns: he/him
Contact:

Is there any template or documentation for SMBX2 Costumes?

Postby Rudy Red » Thu Jul 10, 2025 1:36 pm

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...

deice
Rocky Wrench
Rocky Wrench
Posts: 636
Joined: Fri Jul 23, 2021 7:35 am

Re: Is there any template or documentation for SMBX2 Costumes?

Postby deice » Thu Jul 10, 2025 5:05 pm

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

Rudy Red
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon Aug 22, 2022 11:31 am
Flair: Back with great ambition!
Pronouns: he/him
Contact:

Re: Is there any template or documentation for SMBX2 Costumes?

Postby Rudy Red » Thu Jul 10, 2025 6:33 pm

Gotcha, thanks.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari