-
Junior Member
Can you create a chain of events using one trigger?
Im trying to create a chain of effect and physic events by using a single trigger, is that possible because when i try to link other events it cancels the previous event that was selected. An example would be if i wanted to have a the rider drive and hit a single trigger, i could have 10 objects fall in a row from one to the next and so on like dominos without all of them falling simultaneously. Anyone know how to do this?
-
Member
Every event has a property called "Event/filter" which can be set to an event that will execute after the first event. In the editor this appears as red arrows going from a trigger to an event to another event etc. You can't connect a trigger directly to more than one event, but you can use an impulse splitter filter, which can be hooked up to multiple events or filters that will be executed more or less simultaneously. If you want the events in a chain to not all happen at the same time, you can use an impulse delay filter, which takes in a signal from a trigger or event, then waits some time before passing the signal along to the next in the chain.
Your example of objects failling would be something like
Area trigger --> Physics on event --> Impulse delay filter --> Physics on event --> Impulse delay filter --> etc.
-
Senior Member
^yep, although i would say avoid if possible the impulse splitter as it can create problems, just chain events together as mrjorts states, impulse from interval/hit/area trigger or even checkpoints 'also trigger' to any number of events, you can have things like impulse->physics->colour->OPE->SVE->delay->physics->etc.
also if the impulse chain is too long the editor will warn you, but for the most part you can do several hundred tiles per tick chained together.