How do I make blocks disappear after a condition is fulfilled?

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
TheRealSky41
Shy Guy
Shy Guy
Posts: 5
Joined: Sun Oct 17, 2021 10:58 am
Pronouns: he/him

How do I make blocks disappear after a condition is fulfilled?

Postby TheRealSky41 » Fri May 26, 2023 1:39 pm

I am making a level where if the player kills all Goombas in the level, then some blocks disappear, and open up a path. How can I make this happen? Thanks for the help in advance!

Xboy1
Koopa
Koopa
Posts: 18
Joined: Thu Jul 04, 2019 6:15 am
Flair: supah mayrio bruthas

Re: How do I make blocks disappear after a condition is fulfilled?

Postby Xboy1 » Sat May 27, 2023 7:32 pm

You don't need lua for this, it's very simple. Just put the blocks on their own layer, and make an event that makes them disappear, Now put the goombas on their own layer, right click any goomba and click properties. Then, click the dropdown by "layer is empty" and select the event.

TheRealSky41
Shy Guy
Shy Guy
Posts: 5
Joined: Sun Oct 17, 2021 10:58 am
Pronouns: he/him

Re: How do I make blocks disappear after a condition is fulfilled?

Postby TheRealSky41 » Sun May 28, 2023 1:24 pm

Oh, ok! Thank you for helping! :D


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari