Page 1 of 1

Collect-a-thon using multiple layers

Posted: Tue Mar 25, 2014 3:47 am
by Kuribo
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?

Re: Collect-a-thon using multiple layers

Posted: Tue Mar 25, 2014 3:54 am
by Chad
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.

Re: Collect-a-thon using multiple layers

Posted: Tue Mar 25, 2014 5:29 am
by Kuribo
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. :)

Re: Collect-a-thon using multiple layers

Posted: Tue Mar 25, 2014 9:18 am
by litchh
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 ;)

Re: Collect-a-thon using multiple layers

Posted: Tue Mar 25, 2014 7:03 pm
by Kuribo
I did understand it, thanks! That's a pretty clever solution. I actually feel silly for having not come up with it, lol.