Skip to main content

Search

Getting to grips with keyframes

  • Agarwel

    I would place the keayframe on the timeline and set the timeline to play once (so even if you release the button, it will play till the end). Then make sure there is some smoothing and it should be fine.

  • thebiv

    Trying to remember this while not having the logic in front of me, so bear with me and any errors, it's not my strong suit.

    But if you want to have the umbrella not attack when it's open, I assume you have a button to open/close it?

    Wire the same button (We'll call is "S" from now on) to a toggle. A two input selector with output on option "B" set to constant signal and "A" left blank will work. Just wire that button into the "next" input (I forget the actual term, advance?) And make sure the "umbrella closed" state is timed with "B".

    Now wire bot the "B" output on the selector and the attack button into an "AND" gate. Wire that into the attack animation.

    What this does is require two inputs for the attack animation to trigger. When you Press "S", it both closes the umbrella and switches the selector to "B". Since a constant signal is now going into the "AND" gate, the attack button will complete the gate and trigger the animation.

  • thebiv

    Additional info.

    Check out this guy's logic for adding a run animation. The part to pay attention to is how you differentiates between a normal run and a sprint. Very helpful stuff!!!

    https://www.youtube.com/watch?v=syjrCSXd-0s

Please sign in to leave a comment.