Getting to grips with keyframes
Hi!
I'm trying create a character who is holding an umbrella but cannot attack when it's open.
I have created a keyframe to close the umbrella by hiding the open one ane revealing a closed one, which works ok if a little basic.
I have also added keyframes for the swing of the closed umbrella during an attack, however these don't seem to play to completion and the character barely moves and really isn't much of an attack!
Does anyone have any suggestions or ideas as to what I might be doing wrong?
-
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.
-
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. -
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.