Is it possible to trigger a level to be "destroyed" after beating it, or beating it in a certain way?

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

Moderator: Userbase Moderators

Greensbr
Shy Guy
Shy Guy
Posts: 9
Joined: Tue Feb 02, 2016 5:18 am

Is it possible to trigger a level to be "destroyed" after beating it, or beating it in a certain way?

Postby Greensbr » Thu Feb 25, 2016 7:29 am

I was wondering if it was possible to trigger a level to be "destroyed" after beating it or beating it in a certain way.

What I mean by that is that the player would no longer be able to access it when they try to enter the level, but they can move along the path on the world screen.

Even better question. Is it possible to make it so that if the player DOES access it, it instead starts them on a different map. For example, the 1) level was a castle, 2) you beat it, 3) so it got "destroyed", 4) now when you go into the level, you simply move to a flat land outside with a broken castle in the background, and exiting the screen on either side ends the level.

Basically can you change the "nature" of levels on the world map by activating certain triggers?

Alper0022
Fighter Fly
Fighter Fly
Posts: 30
Joined: Sat Dec 05, 2015 7:48 am

Re: Is it possible to trigger a level to be "destroyed" after beating it, or beating it in a certain way?

Postby Alper0022 » Thu Feb 25, 2016 8:05 am

You could look into using lunalua, and if you're good at code, it would probably be pretty easy to create the effect.

But I haven't used LunaLua that much, so I don't know how to make the effect.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Is it possible to trigger a level to be "destroyed" after beating it, or beating it in a certain way?

Postby underFlo » Thu Feb 25, 2016 9:16 am

You can use the onNPCKill event if the level ends via an exit NPC to write to the data class that you beat the level. Then, on the world map, you can check for that data variable to change the sprite to a destroyed castle and the destination level to the destroyed one.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari