Can anyone tell me why these nodes let me crouch but not uncrouch?

I set this up but it only lets me crouch and not uncrouch here is a link to the picture of the blueprint Imgur: The magic of the Internet

anyone at all?

Because you don’t do anything if it’s not supposed to be crouched.

First of all what you have there at the very beginning is called a “FlipFlop” and a node you can use. You don’t need a variable and can reduce the first 4 nodes after your “CustomEvent_0” to a single one.

Even if you want to keep the variable I’d suggest using that and just using the result (it provides two possible execution outputs (a and b) and a boolean) and put that straight into the variable.

Then from the A and B output (or in your current case “True” and “False” of the branch) you need to wire one which goes into Play. This will run your Timeline from the beginning to the end (aka high number to low number for the alpha). When you play again it’s already at the destination. It already finished so it will simply do nothing. “Play from start” will make you crouch again. “Stop” is not interesting right now and also quite self explanatory.

“Reverse” and “Reverse from End” is basically the counter part to “Play and Play from Start”.

“Reverse” is what’s interesting for us! Your “False” or “B” output has to go in there.

The cool thing about “Play” and “Reverse” is that it will play from whatever position you are right now. So for example if you want to start crouching and the timeline / crouch animation takes 5 seconds (just as example) and just press the button you will have a signal going into “Play”. If you decide after 3 seconds you want to stand up again by pressing the button again and playing “Reverse” this time you will just from the position the timeline is right now (so the correct Alpha for your animation) go backwards towards the beginning.

This is a huge wall of text and I’m sorry for that. Though I hope timelines became more clearly for you now :slight_smile:

Cheers

after doing this i can still not uncrouch after crouching here is an image of my new blueprint Imgur: The magic of the Internet

Are you absolutely sure your event is called and you have a curve in your timeline?

I do have a curve in my timeline but I do not understand what you mean by my event being called.

Is CustomEvent_0 being called when you stop crouching?

You can test this by placing a breakpoint on the node (right-click on the node to add/remove breakpoints), then start the game normally. Whenever the program execution flow reaches CustomEvent_0, your game will be paused. You can use the Debug-only Resume button to unpause the game.

Alternatively, you can add Print nodes to output some message when the event is fired or even during the timeline to help you debugging.

yes it is the only problem i see is that my timeline is not reversing even though it is connected to the flipflop

my problem is not yet solved

Don’t forget that capsule Half Height can’t be lower than Capsule Radius (I think). So if you have 42 Capsule Radius your Half Height should be minimum 42. And based on that your standing height should be higher than 42. Also make sure you have used correct Alpha values in timeline: between 0-1 not 0-100.

These are based on my own mistakes in the past :smiley: Hope it helps.

someone please help me :frowning: