Page 1 of 1
HELP! Episode PROGRESS!
Posted: Wed Jan 29, 2020 4:09 pm
by SuperSmashbroFanX
Is there a way to have progress in a level? For example when you beat a certain level in an episode the hub level will have new areas unlocked and things changed
Added in 2 minutes 53 seconds:
Also more help! Why Isnt there option to choose a bowser game or megaman game when I start? And also if that ever gets brought into smbx2 is there a way for them to automatically start in a specific area in the game instead of Mario?
Re: HELP! Episode PROGRESS!
Posted: Wed Jan 29, 2020 9:14 pm
by Murphmario
Maybe you could have a global variable that activates once you collect the goal item. If the variable is set to one, then an event happens where the area changes.
Re: HELP! Episode PROGRESS!
Posted: Wed Jan 29, 2020 10:41 pm
by SuperSmashbroFanX
Murphmario wrote: ↑Wed Jan 29, 2020 9:14 pm
Maybe you could have a global variable that activates once you collect the goal item. If the variable is set to one, then an event happens where the area changes.
How do I do it!!?

Re: HELP! Episode PROGRESS!
Posted: Thu Jan 30, 2020 1:15 am
by Emral
SMBX has something like this built in with star exits. Any warp in the game can have a minimum required amount of stars to enter.
Re: HELP! Episode PROGRESS!
Posted: Thu Jan 30, 2020 6:42 am
by Wiimeiser
I'm pretty sure you could code custom LUA to show and hide specific layers.
Re: HELP! Episode PROGRESS!
Posted: Thu Jan 30, 2020 6:51 pm
by SuperSmashbroFanX
I’m not using stars in my episode though. What’s a global variable???
Re: HELP! Episode PROGRESS!
Posted: Thu Jan 30, 2020 10:55 pm
by IAmPlayer
SuperSmashbroFanX wrote: ↑Thu Jan 30, 2020 6:51 pm
I’m not using stars in my episode though. What’s a global variable???
SaveData table and GameData table is a table that can be filled with variables that are saved between levels (aka global variables). The difference between SaveData and GameData is that GameData got discarded after a game session ends (example: when the player exit to main menu), while SaveData doesn't get discarded after a game session ends, which is more useful for progression.
Re: HELP! Episode PROGRESS!
Posted: Sat Feb 01, 2020 4:22 am
by Emral
1AmPlayer wrote: ↑Thu Jan 30, 2020 10:55 pm
SuperSmashbroFanX wrote: ↑Thu Jan 30, 2020 6:51 pm
I’m not using stars in my episode though. What’s a global variable???
SaveData table and GameData table is a table that can be filled with variables that are saved between levels (aka global variables).
To clarify:
Global variables are something different, technically. A variable is global when not prefixed with local. All this means is that global variables are accessible outside of the script they're defined in. SaveData and GameData are special global variables, because basegame runs code over them to ensure that their contents carry through between levels.