Is it possible to change a level's state by beating a different level and/or making progress?

Need help with any SMBX game-related issues? Ask your questions here.
Biscuit
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Sun Jul 10, 2022 5:26 pm

Is it possible to change a level's state by beating a different level and/or making progress?

Postby Biscuit » Sun Jan 15, 2023 4:26 pm

To clarify: Is it possible to add/remove things in a level with events from different levels across the board?
For example: Adding Toad NPCs in a Toad-Town when you make progress throughout the game or adding a Yoshi in Yoshi's house when you beat a certain castle?

deice
Volcano Lotus
Volcano Lotus
Posts: 538
Joined: Fri Jul 23, 2021 7:35 am

Re: Is it possible to change a level's state by beating a different level and/or making progress?

Postby deice » Sun Jan 15, 2023 4:59 pm

Biscuit wrote:
Sun Jan 15, 2023 4:26 pm
To clarify: Is it possible to add/remove things in a level [...] from different levels across the board?
yes
Biscuit wrote: with events
nope. at least not directly. you could have the trigger be an event, but the actual heavy lifting requires some lua, namely writing progress into the savedata table. then, inside the levels you want to change, you'd run a check inside the "onStart" event and show any hidden layers or do whatever if the values you're looking for are present.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari