Persistent Levels in SMBX2?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

EclipseMain
Bob-Omb
Bob-Omb
Posts: 22
Joined: Sat Mar 16, 2019 4:12 pm
Contact:

Persistent Levels in SMBX2?

Postby EclipseMain » Fri Nov 13, 2020 4:32 pm

Is there a way to make changes in a level remain after you leave the level and enter it again?

Like for example, if you hit a block and it has an event where it hides a layer, if you exit the level and enter it again the layer will remain hidden. Can you do this in SMBX2?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Persistent Levels in SMBX2?

Postby Emral » Sat Nov 14, 2020 3:11 am

You can use SaveData variables to store some kinda information about persistent going-ons, and then in onStart of the level check the status of your variables and manipulate in-level things accordingly (like hiding a layer or something).


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari