How do I use the Switch gadget ?
Hi everyone
Yesterday I played some logic tutorial and the one where you get connie to reach cuthbert by crossing several bridges with differents logics
SO there is one bridge we need to make rise when connie is on the push button and go down after a timer of 5 sec. The game make us do this with a trigger zone , a timer, a counter (1 or 0 signal so basically on/off and the rotator for the bridge.
BUT there is a Switch gadget (basically on off) and I asked myself : why use a counter and nlt a switch to activate then after 5 sec desactivate the rotator ?
I tried to do this simple thing in every way conceivible but impossible...
Do you know how to do it ?
-
Well, for starters, a switch by itself doesn't give you any granular control whatsoever and is just an extension of what the trigger zone already does. "Enter zone --> activate rotator --> movement" is pretty much the same as making it route through a switch: there's no point, really.
A trigger zone is basically an input signal, as is the switch. It returns 1 or 0 depending on its state. Same for the input switch: you can use it after a trigger zone, but to get the rotation to last a while after, you'll still need a timer and a counter - if you're going by the tutorial's way of doing things.
You could use, let's say, a timeline, plop in the switch, hook the TL up to your trigger zone and then position the switch such that it lasts as long as you'd like. This is how it should execute.
enter trigger volume --> timeline activates --> as the switch node is getting activated, it'll in turn activate the rotator --> when the playhead in the timeline leaves the switch's region, the rotator turns off as well
I personally love using timelines. You can quickly throw together logic with a bit of dynamics, waiting a tad before activating a timeline, stacking animations etc.
I can also recommend getting to know keyframes, they're especially good for things you want to "ramp on" or just smoothly transition between states.
Iniciar sesión para dejar un comentario.