Hello guys, my aim is pretty simple, to have my player play a Camera Shake as soon has the Is Falling value gets false, meaning the player is no longer falling. But the issue for me is that when jumping it checks whether the player is falling or not all in 1 frame. I want it to compute that when I press Space Bar for jump it keeps on checking the value for Is Falling to go to true then when it get backs false the Camera Shake should happen.
For temporary purposes I am using a delay after jumping where it delays the code for the specific amount of time to let the player jump get finished and play the camera shake, this is hard coding. All I want is to do is to make a code where the game decides when the player jumped and when it finishes jumping, then camera shake should initiate.
Here in the above image (bottom right) I used Event tick to check Is Falling for my character and then stored it in a variable that I can use.
Here is when I want to use it. On the bottom right of the 2nd comment you can spot a “Client Play Camera Shake” node which is attached to a Delay node. Instead of that delay I want it to run the code until the player hits the ground and then initiates the “Client Play Camera Shake”.
I am sorry if maybe I am making this complicated but I am new and maybe there are other ways to do this. Please let me know if I can improvise on this technique or maybe use a completely different technique.
Thank you