Costume Preset

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Giggs-Chan
Fighter Fly
Fighter Fly
Posts: 34
Joined: Mon Aug 22, 2022 12:21 pm
Contact:

Costume Preset

Postby Giggs-Chan » Tue Nov 22, 2022 1:32 pm

How do I have the player start using a costume when they start the game other than SMB3 Mario without the costume switch block?

Mal8rk
Snifit
Snifit
Posts: 217
Joined: Mon Oct 25, 2021 11:04 pm
Flair: English Speaking Spanish Speaker
Pronouns: He/Him
Contact:

Re: Costume Preset

Postby Mal8rk » Tue Nov 22, 2022 7:53 pm

Let's say if you want to make the player start as SMW Mario. Then you can write this on your lua file:

Code: Select all

function onStart()
    Player.setCostume(CHARACTER_MARIO,"SMW-Mario",true) --This works for other characters
end


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari