Page 1 of 1

[SOLVED] How to start 2.0 episode as Wario?

Posted: Sat Aug 05, 2023 11:02 am
by P-U-R-G
I've been using SMBX for a quite a long time now, but I've only recently started using 2.0b4 and am working on a Wario episode.
I can't figure out how to have Wario be the selected player from the launcher, or from when the episode starts. Is there any way to do this?

Sorry if this has been asked before, but I couldn't find any helpful threads about this.
Thank you in advance!

Added in 2 hours 32 minutes 11 seconds:
for note, this is all ive found...

Image
the 'Disable characters', i want only Wario to be playable, how can i set that?

Re: How to start 2.0 episode as Wario?

Posted: Sun Aug 06, 2023 10:19 pm
by Emral
For the time being you're gonna have to put this block of code into both your episode-wide luna.lua and map.lua:

function onStart()
player:transform(CHARACTER_WARIO)
end

If you already have a function onStart, simply put the player:transform line into the existing onStart, rather than adding a second onStart.

Re: How to start 2.0 episode as Wario?

Posted: Mon Aug 07, 2023 8:03 pm
by P-U-R-G
Woah! Thanks so much man, you're a legend!
btw, I've really admired your work with smbx through the years, you were why I got into smbx so this is kind of an honour for me!

Re: How to start 2.0 episode as Wario?

Posted: Wed Aug 09, 2023 2:42 am
by mariobrigade2018
Another thing: make sure player selection (and maybe 2-player as well) is disabled to prevent confusion and make the launcher look cleaner.

Re: How to start 2.0 episode as Wario?

Posted: Thu Aug 10, 2023 10:18 pm
by P-U-R-G
mariobrigade2018 wrote:
Wed Aug 09, 2023 2:42 am
Another thing: make sure player selection (and maybe 2-player as well) is disabled to prevent confusion and make the launcher look cleaner.
How Can I disable 2 player mode? also thank you for the tip!

Re: How to start 2.0 episode as Wario?

Posted: Fri Aug 11, 2023 6:44 am
by deice
P-U-R-G wrote:
Thu Aug 10, 2023 10:18 pm
How Can I disable 2 player mode?
create a folder inside your episode named "launcher" and a file inside that's called "info.json" (without the quotation marks)
inside "info.json", put:

Code: Select all

{
	"allowTwoPlayer": false
}
you can go to "data/_templates/launcherDemo" inside your smbx2 folder to see how other launcher settings work as well

Re: How to start 2.0 episode as Wario?

Posted: Sat Aug 12, 2023 1:12 pm
by P-U-R-G
Thank you so much deice! Cheers everyone, its honestly really cool to know that peeps still come to these forums to help others out.