Collect-a-thon using multiple layers

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

Moderator: Userbase Moderators

Kuribo
Dolphin
Dolphin
Posts: 88
Joined: Sat Jan 04, 2014 4:36 am

Collect-a-thon using multiple layers

Postby Kuribo » Tue Mar 25, 2014 3:47 am

Say my level has a quest where you have to collect x number of coins/mushrooms/whatever, and doing so makes a star appear. Normally it's a simple matter of having a layer with all the coins/mushrooms/whatever, and activating an event with No More Objects in Layer. But can I still do this if I have the coins/mushrooms/whatever spread across multiple layers?

Chad
Ripper II
Ripper II
Posts: 330
Joined: Sun Mar 02, 2014 3:22 pm

Re: Collect-a-thon using multiple layers

Postby Chad » Tue Mar 25, 2014 3:54 am

That's not really possible in the same fashion. You'd have to do something like putting a star behind multiple walls, one for each layer that you have to collect everything on. For each completed layer, you could hide a section of the wall until all of them are gone and you can access the star.

Kuribo
Dolphin
Dolphin
Posts: 88
Joined: Sat Jan 04, 2014 4:36 am

Re: Collect-a-thon using multiple layers

Postby Kuribo » Tue Mar 25, 2014 5:29 am

That's too bad, the wall thing is not quite as elegant or simple as I'd like but I'll do my best with it. Thanks for the help. :)

litchh
Eerie
Eerie
Posts: 719
Joined: Sun Dec 29, 2013 6:10 am

Re: Collect-a-thon using multiple layers

Postby litchh » Tue Mar 25, 2014 9:18 am

Let us assume that you have 2 layers of those objects. Create hidden lava near the place you want your prospective event to happen.
Then create new layers:
- eventchecker1 (-) - you can use any block for that
- eventchecker2 (-) - the same
- eventlayer (*) - use SMB2 Mushroom or any Friendly NPC, bur remember: they can be killed by enemy projectiles or floating enemies with "noblockcollision=1"

Place above the lava this construction:

Code: Select all

**
--
invisible lava
Remove left eventchecker1 after first layer NPC are defeated
Remove right eventchecker2 after second layer NPC are defeated
Set your prospective event for "No More Objects in Layer" eventlayer

If you destroyed all the objects from your both layers, go to suitable place - and your prospective event will happen!

I hope you understand my crooked explaining ;)

Kuribo
Dolphin
Dolphin
Posts: 88
Joined: Sat Jan 04, 2014 4:36 am

Re: Collect-a-thon using multiple layers

Postby Kuribo » Tue Mar 25, 2014 7:03 pm

I did understand it, thanks! That's a pretty clever solution. I actually feel silly for having not come up with it, lol.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari