Twitchy panels
I have 3 logic branches connecting to one listener. When AllTrue, the listener triggers a logic_relay which animates two panels. I have a separate relay to close them on AllFalse or AllMixed.
It works just fine except for one problem. Although I incorporated CancelPending into my relays, with the open and close animations on a small delay, the panels open and close very quickly any time the value of a logic branch changes. I have played around with it and been unable to stop this twitching.
Does anyone know of a solution to this problem? Thanks.
I suggest you use the same method, however making the open and close relay change the same branch (open changing it to 1, close changing it to 0). You do not need the CacelPending output, as the branches should do the work for you.
Remember that if you are using a listener you don't need to 'Test' it as it will figure it out automatically when a value changes. Also keep the "enable fast trigger" in your relays UNTICKED.
EDIT: Refer to the attatchment Panel_logic_example.vmf
Because then you gotta make sure onpressed and onunpressed for example, send the SetPlaybackRate output.
1 sets the animation (fire once)+ sets the playbackrate to 1 & the other sets the playbackrate to -1. This should fix glitchy panel movement and the animations will ALWAYS run smoothly back and forth... and can stop/return halfway without problems.
I will try out these tips today and see if it works. Thanks, guys.
Chickenmobile, is that example .vmf yours? If so, can you explain the purpose of the panel_hidden_relay_branch? I don't see anything listening to it, so I'm not clear on what it's for.