|
Post by G 4 greatness on Feb 18, 2017 15:55:16 GMT
was experimenting with jump animations to make a mecanim jump transitions like the ones below
anybody knows how to make a jump transtition while in midair
|
|
|
Post by sickscore on Feb 18, 2017 17:06:38 GMT
was experimenting with jump animations to make a mecanim jump transitions like the ones below ... anybody knows how to make a jump transtition while in midair Actually quite easy if I understand you correct. 1. Take a look at the double/multijump addon I posted 2. Add a fancy spinning animation to your animator and add a custom parameter to switch between regular jump and fancy jump 3. In the multijump code, set the custom parameter, when multijump gets triggered Let me know, if it worked. Cheers, sickscore
|
|
|
Post by G 4 greatness on Feb 19, 2017 20:30:56 GMT
what is custom parameter?
|
|
|
Post by sickscore on Feb 19, 2017 21:19:55 GMT
what is custom parameter? Take a look at the unity tutorials for the animator. Basically in your animator window you can add parameters such as (bool)IsDoubleJumping and in your code you can set/get this parameters. Animator anim; // => Variables anim = GetComponent<Animator> (); // => Awake anim.setBool("IsDoubleJumping", true); // => When fancy animation should be active / else set to false
|
|