Persistent Levels in SMBX2?

Need help with any SMBX game-related issues? Ask your questions here.
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?

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Persistent Levels in SMBX2?

Postby Enjl » 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 1 guest