Activate spawner on event

General discussion about Super Mario Bros. X.
Theopold1
Goomba
Goomba
Posts: 3
Joined: Fri Aug 14, 2020 7:39 am
Flair: Ameteur Programmer
Contact:

Activate spawner on event

Postby Theopold1 » Sun Dec 04, 2022 8:53 am

I'm sorry, this question has probably been asked before, but how would I make a generator spawn an enemy when an event begins? Is it possible?

ctrl_void
Volcano Lotus
Volcano Lotus
Posts: 509
Joined: Tue Aug 05, 2014 10:10 am
Pronouns: They/them

Re: Activate spawner on event

Postby ctrl_void » Sun Dec 04, 2022 9:32 am

Theopold1 wrote:
Sun Dec 04, 2022 8:53 am
I'm sorry, this question has probably been asked before, but how would I make a generator spawn an enemy when an event begins? Is it possible?
It's simple, put the generator npc in a layer, hide the layer on start, then use an event to activate the visibility of that layer.

Theopold1
Goomba
Goomba
Posts: 3
Joined: Fri Aug 14, 2020 7:39 am
Flair: Ameteur Programmer
Contact:

Re: Activate spawner on event

Postby Theopold1 » Sun Dec 04, 2022 10:30 am

Thank you!

Added in 15 minutes 59 seconds:
Oh, and I don't know if this needs a new post made for it, but it IS possible to make an event trigger when a spawned object falls below the level, right?

ctrl_void
Volcano Lotus
Volcano Lotus
Posts: 509
Joined: Tue Aug 05, 2014 10:10 am
Pronouns: They/them

Re: Activate spawner on event

Postby ctrl_void » Sun Dec 04, 2022 6:58 pm

Theopold1 wrote:
Sun Dec 04, 2022 10:46 am
Thank you!

Added in 15 minutes 59 seconds:
Oh, and I don't know if this needs a new post made for it, but it IS possible to make an event trigger when a spawned object falls below the level, right?
I'm not sure, depends if the "On Death/Kill" trigger of the NPC is triggered when it falls from the level.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Activate spawner on event

Postby Enjl » Mon Dec 05, 2022 2:44 am

ctrl_void wrote:
Sun Dec 04, 2022 6:58 pm
Theopold1 wrote:
Sun Dec 04, 2022 10:46 am
Thank you!

Added in 15 minutes 59 seconds:
Oh, and I don't know if this needs a new post made for it, but it IS possible to make an event trigger when a spawned object falls below the level, right?
I'm not sure, depends if the "On Death/Kill" trigger of the NPC is triggered when it falls from the level.
This is the case if
- The NPC is spawned by a generator or by another NPC OR
- The section has "No turn back" enabled

Otherwise, a workaround is to put a lava block below the level.


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests