Changing Player Costume [SMBX2]

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
MakisMaker
Goomba
Goomba
Posts: 4
Joined: Sun Jul 16, 2017 8:20 pm

Changing Player Costume [SMBX2]

Postby MakisMaker » Thu Dec 08, 2022 1:08 am

I hope this hasn't been answered to death and back elsewhere.

So, I want to use SMW's graphics instead of SMAS:SMB3's for the main man, and Luigi too. Seeing as how SMBX2 already has the Mario World sprites (In costume form), I was wondering if there was a way to:

A.) Force Mario and Weeg's costumes to be in the SMW style on episode startup.

B.) Prevent the player from changing it.

A is, ultimately, more important to me than B, as I can probably work around this regardless.

Best regards.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9708
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Changing Player Costume [SMBX2]

Postby Emral » Thu Dec 08, 2022 3:02 am

A.
(in episode-wide luna.lua and map.lua)

Code: Select all

function onStart()
	Player.setCostume(CHARACTER_MARIO, "SMW-Mario")
	Player.setCostume(CHARACTER_LUIGI, "SMW-Luigi")
end
B.
Don't place any costume blocks in the episode. People will still be able to use the "dressmeup" or "undress" cheats, but I think if people cheat they're going out of their way to break dev intent in other ways, too, so it's not worth building special checks.

MakisMaker
Goomba
Goomba
Posts: 4
Joined: Sun Jul 16, 2017 8:20 pm

Re: Changing Player Costume [SMBX2]

Postby MakisMaker » Thu Dec 08, 2022 3:20 am

Enjl wrote:
Thu Dec 08, 2022 3:02 am
A.
(in episode-wide luna.lua and map.lua)

Code: Select all

function onStart()
	Player.setCostume(CHARACTER_MARIO, "SMW-Mario")
	Player.setCostume(CHARACTER_LUIGI, "SMW-Luigi")
end
B.
Don't place any costume blocks in the episode. People will still be able to use the "dressmeup" or "undress" cheats, but I think if people cheat they're going out of their way to break dev intent in other ways, too, so it's not worth building special checks.
I guess you would know best rather than anyone else, thanks! Didn't expect you to see this, but, hey, I'm glad you helped! Love the program, by the way. So many improvements!

Thanks again Enji! You rock! :D


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari