- Home /
Question by
W1zzel · Nov 19, 2019 at 04:22 PM ·
2d game2d sprites2d animation2d-gameplayanimation controller
How to make animations transition based on players direction and speed ?
Hi,
i am working on a 2d game similar to doodle jump where the player jumps higher and higher and has to collect items in order to get another velocity boost.
Now i want to make some animations that are based on the players current direction and velocity. For example :
When the player moves up i only play the "Jumping" animation. When the player falls under a certain positive velocity treshhold, i want the animation to change to a "transitionanimation" between flying up and falling down and then, when he passes another treshhold i want to play the "Fallng" animation.
What is the best approach ? Can blendtrees do that ? Thanks in advance !
Comment