Page 1 of 1

Changing Player Costume [SMBX2]

Posted: Thu Dec 08, 2022 1:08 am
by MakisMaker
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.

Re: Changing Player Costume [SMBX2]

Posted: Thu Dec 08, 2022 3:02 am
by Emral
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.

Re: Changing Player Costume [SMBX2]

Posted: Thu Dec 08, 2022 3:20 am
by MakisMaker
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