Animation Blending
I've tried to replicate this with buttons in the real game and the panels in game naturally blend from the start animation to the return animation when I trigger the button quickly. How do I replicate this myself?
For my own problem, I needed the animation to finish first before it went back. So I used a combination of 2 logic_branches (button_pressed and animation_ready) and branch_listener that listened for either both to be true to trigger the open_relay and both to be false to trigger the close_relay. That's a little more complicated, but fixed my problem.
RageCompeX wrote:
well I exely have the same question here.. I want that Lift what moves in and out, when stand on button go up, and when not go down without finishing the full animation, I need those Victory lifts
That's like my issue. In order to do this, I did used the following:
prop_floor_button (outputs: OnPressed set button_pressed true; OnUnPressed set button_pressed false)
logic_branch (button_pressed)
logic_branch (animation_ready, starts as true)
logic_relay (open_animation; outputs: ; set animation_ready to false after x seconds)
logic_relay (close_animation; outputs: ; set animation_ready to true after x seconds)
logic_branch_listener (listens button_pressed and animation_ready; outputs: OnAllTrue trigger open_animation; OnAllFalse trigger close_animation)
I'm not sure that's a very good tutorial, but it's the best I can do at the moment. With this setup, when you spam the floor button, the panels will open all the way first, then close immediately after it's finished opening. And if it starts closing, it will finish closing before it opens up again.
Sarcasm Self Test - Complete
tungsten wrote:
RageCompeX wrote:well I exely have the same question here.. I want that Lift what moves in and out, when stand on button go up, and when not go down without finishing the full animation, I need those Victory lifts
That's like my issue. In order to do this, I did used the following:
prop_floor_button (outputs: OnPressed set button_pressed true; OnUnPressed set button_pressed false)
logic_branch (button_pressed)
logic_branch (animation_ready, starts as true)
logic_relay (open_animation; outputs: ; set animation_ready to false after x seconds)
logic_relay (close_animation; outputs: ; set animation_ready to true after x seconds)
logic_branch_listener (listens button_pressed and animation_ready; outputs: OnAllTrue trigger open_animation; OnAllFalse trigger close_animation)I'm not sure that's a very good tutorial, but it's the best I can do at the moment. With this setup, when you spam the floor button, the panels will open all the way first, then close immediately after it's finished opening. And if it starts closing, it will finish closing before it opens up again.
More of a problem is how I attach everything togheter, I exely made a thread about it yesterday called Lift.