Daily progress, Idle Jump and cinemachine camera.

Esteban Ibarra
2 min readJul 14, 2021

--

The next challenge was to implement an idle jump. I found a decent one at mixamo called “Standing Jump”. I didn’t really like the arm placement but fortunately there was a sliding bar called Character Arm Space that I was able to slide down to close to 0 to make it look like a more natural jump.

I’ve covered importing animations from mixamo before so I’ll just share the relevant transition info:

Idle to StandingJump: no exit time, fixed duration, transition duration 0

StandingJump to Idle: no exit time, fixed duration on, transition time 0.

Thanks to mechanim and the transitions, I didn’t really need to program anything else! Depending on if the players movement speed is 0 or over 0, unity chooses the standing jump or the running jump. Nice!

The final challenge was attaching a cinemachine camera. Since we covered this in cinematics, it was super easy. Install Cinemachine using the package manager, create a 2d camera and then drag the player into the follow slot and change the distance to around 27 and that’s all there was to that!

And with that we have a wonderfully easy and professional camera that smoothly follows the player!

--

--

Esteban Ibarra
Esteban Ibarra

Written by Esteban Ibarra

cartoonist, game artist, and wanabe gamedev.

No responses yet