I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: 128-Up on March 08, 2015, 10:26:12 AM

Title: Multiple triggers for one instance?
Post by: 128-Up on March 08, 2015, 10:26:12 AM
Is it possible to have, say, one spike be affected by more than one trigger to make something akin to Floor 99 in NANG? I've tried to do it myself, but the objects seem to only consider the trigger conditions written last.

(Engine: Lemon for 8.0)
Title: Re: Multiple triggers for one instance?
Post by: Sephalos on March 08, 2015, 10:42:58 AM
I think at that point you'd have to make a new spike object for that particular instance or you'd have to code all the spikes and triggers to work with multiple variables. In the latter case it would mean that when a triggered spike reaches a destination or a object that would stop them and would reset its state from being active to not being active.
Title: Re: Multiple triggers for one instance?
Post by: lawatson on March 08, 2015, 11:05:17 AM
You can try the stinkycheese triggers, where you set the trigger's ID and make it do an action on a playerKiller object with a matching ID.


(https://i.imgur.com/aMh6EUe.gif)