Landing variation depent on Height

Hi i am in progress of making a 3d sidescroller game my question is how can i change the animation when my character is landing depending on the Height he is jumping from ?? from example
i jump from one place to another in the same height with me and my character plays the default animation
i jump from the same place to a deeper place and my character plays a different animation showing that he fell off from higher ground
i jump from the same place to a Pit , hole etc my character plays a falling animation …
also i would love if someone can share a 3d sidescroller Blueprint for making my character Crouching

thanks in advance

If you know how far your character is going to jump (ie horizontal distance covered by a jump), then you can do a trace downward to see where exactly he is going to land. Once you now that, you can calculate the height of the jump (the difference between Z axis of your character’s current location and the location of landing). Using that, you can play the right animation.

49355-pic.jpg

this is how I guessed it that depenting on the height from my character or even the time I am falling - jumping I will be able to change animation somehow thing is I haven’t figure out how to set up it inside character blueprint and animation bluepring… I am not programmer you see and all that I have done so far are made based on tutorials on internet or examples I found here and there
thanks once more for any answer and any help in advance :slight_smile:

this is how I guessed it that depenting on the height from my character or even the time I am falling - jumping I will be able to change animation somehow thing is I haven’t figure out how to set up it inside character blueprint and animation bluepring… I am not programmer you see and all that I have done so far are made based on tutorials on internet or examples I found here and there
thanks once more for any answer and any help in advance :slight_smile: