This may be sort of a noob question, but how do I make a player sensor switch 1 shot? It doesn't seem to be in the options of the switch and I'm confused, is there a different way your suppose to do it or am I missing something?
Printable View
This may be sort of a noob question, but how do I make a player sensor switch 1 shot? It doesn't seem to be in the options of the switch and I'm confused, is there a different way your suppose to do it or am I missing something?
Wire the player sensor into a counter set to 1.
I prefer a two input selector, with both input and output signals wired to the 2nd node and the default (which becomes the OFF position) set to 1. This makes it easily resettable by wiring another input into that first node. Of course, counters are also resettable, but I like the selector because it's so obvious what it is. The counter looks the same as a timer, and unless you hit the tweak menu on it, you can't really know which it is or what values it's been set to. The selector however is instantly recognizable. But that's just me. I started with the one-shot counters, but have progressed to the selectors.
If you want to replicate the 1 shot behaviour of switches from lbp1 then a 1 frame. pulse from a counter or selector is not the way to do it. That creates an entirely different behaviour altogether.
In lbp2 you determine the behaviour of signal at the destination rather than at the source. So say you want you player sensor to send a 1 shot signal to an emitter, then you would sent the input type of the emitter to be 1 shot.
depending on what you are trying to trigger, the input action for one shot may or may not be called one shot, but you should be able to find it :)
i like using timers, as it gives delayed options. but speed wise a selector may be the fastest, if not counter
Hi.
Simply place your PLAYER SENSOR. Then from its output tab connect it to a COUNTER set to 1 total count and 0 current count. (Dont wire up the counters reset tab, so once it reaches its max it wont reset). This can then be connected to whatever it is you want to activate. As the counter doesnt reset, it cant be activated again.