Timed events

Advanced

So sometimes, you want to make a sort of "timed event" in which the player has to do something before time runs out.

However, you normally cannot run 2 different events in Cave Story, sorry it's just the way it works.



But there is a way around that...

You can use what you've learned from other lessons to create these sort of events.



First you need a H/V trigger, and make it run an event which does a flag jump and sets that flag after,

exactly like the "Clear all enimies" script.



But this time, put in a MNP command in the event ran.

data


Remember, a H/V trigger is an entity that is always trying to touch you, and it runs its event

whenever it makes contact.



However the MNP command will force it to go back to its original position.

(Or wherever you moved it to...)

This makes the trigger come toward the player again, but there is some time in-between that.

Once the trigger touches the player the event is called again.



Since there isn't any event running between those times, the player is free to trigger other events

such as opening a door.



The more events you make for this, the more "time" it takes to get to "The end" message,

or whatever you want to do to the player.


Previous Lesson: Script mode

Next Section: N/A

Table of Contents