Is it possible to set a Custom Character as playable?

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

ToadZ
Hoopster
Hoopster
Posts: 40
Joined: Sun Mar 18, 2018 3:39 pm
Flair: SMBX3 when?

Is it possible to set a Custom Character as playable?

Postby ToadZ » Fri Jul 28, 2023 4:22 pm

Hello, I am making a world in SMBX2 and it's based around a character that is neither Mario, Luigi, Peach, Toad or Link. It's annoying to have transformation blocks in every level, so I'm asking if there's a way to force one of the custom characters as the only playable one.
Thanks!

AppleTheTomato
Buster Beetle
Buster Beetle
Posts: 85
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

Re: Is it possible to set a Custom Character as playable?

Postby AppleTheTomato » Fri Jul 28, 2023 9:23 pm

You should just have to do this in your episode's global luna.lua file:

Code: Select all

function onStart()
player:transform(id, false)
end
id can be replaced with one of these depending on what character you're using: https://docs.codehaus.moe/#/constants/characters

ToadZ
Hoopster
Hoopster
Posts: 40
Joined: Sun Mar 18, 2018 3:39 pm
Flair: SMBX3 when?

Re: Is it possible to set a Custom Character as playable?

Postby ToadZ » Sat Jul 29, 2023 5:17 am

AppleTheTomato wrote:
Fri Jul 28, 2023 9:23 pm
You should just have to do this in your episode's global luna.lua file:

Code: Select all

function onStart()
player:transform(id, false)
end
id can be replaced with one of these depending on what character you're using: https://docs.codehaus.moe/#/constants/characters
Thank you! :D

AppleTheTomato
Buster Beetle
Buster Beetle
Posts: 85
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

Re: Is it possible to set a Custom Character as playable?

Postby AppleTheTomato » Sat Jul 29, 2023 4:38 pm

You're welcome!


Return to “General”

Who is online

Users browsing this forum: Valentine and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari