Page 1 of 1

Need Help With A Certain Event

Posted: Fri Jan 06, 2023 1:13 pm
by King Mario
Hi there! I'm making Desert Castle Adventure, my submission for the Bad2Good Level Contest. I'm more than half-finished. I'm trying to create an event where unlocking a Keygate makes a Toad disappear and another Toad appear. Do you have any suggestions or advice?

Re: Need Help With A Certain Event

Posted: Fri Jan 06, 2023 1:21 pm
by deice
King Mario wrote:
Fri Jan 06, 2023 1:13 pm
Hi there! I'm making Desert Castle Adventure, my submission for the Bad2Good Level Contest. I'm more than half-finished. I'm trying to create an event where unlocking a Keygate makes a Toad disappear and another Toad appear. Do you have any suggestions or advice?
if by "keygate" you mean npc-255 then you should just be able to set the event as its "death" event and it will trigger when you unlock it. as for the event itself, just having the toads each on their own layer and then hiding the first and showing the second should do the trick.

Re: Need Help With A Certain Event

Posted: Fri Jan 06, 2023 1:54 pm
by King Mario
I've set the Toad that appears in a shown Layer and the Toad that I want to appear in a hidden Layer. The "death" event for npc-255 is set correctly. Layer is default for the keygate. Toad #1 is in Hide and Toad #2 is in Show inside the Event. And after unlocking, it still only shows me the first Toad.

Am I missing something?

Re: Need Help With A Certain Event

Posted: Fri Jan 06, 2023 2:09 pm
by deice
King Mario wrote:
Fri Jan 06, 2023 1:54 pm
I've set the Toad that appears in a shown Layer and the Toad that I want to appear in a hidden Layer. The "death" event for npc-255 is set correctly. Layer is default for the keygate. Toad #1 is in Hide and Toad #2 is in Show inside the Event. And after unlocking, it still only shows me the first Toad.

Am I missing something?
you'd have to be missing something, as the same setup works just fine on my end:
Image

are you certain that everything is set correctly? maybe double-check whether everything is exactly as you described. there might also be external factors such as any lua you have loaded that are causing problems.

Re: Need Help With A Certain Event

Posted: Fri Jan 06, 2023 3:25 pm
by King Mario
deice wrote: Image

are you certain that everything is set correctly? maybe double-check whether everything is exactly as you described. there might also be external factors such as any lua you have loaded that are causing problems.
Well, I did add quite a couple SMBX2-exclusive elements, such as MDA's Keys and Key Coins. Perhaps that is causing the issue?