Creating a Ladder System in Unity — Part 2: Leaving the Ladder.

Objective: update the ladder system script to make the player able to leave the ladder.

For this example I added new animations, one for the climb ladder action and another for fall from the ladder.i In the animation controller these animations are triggered from any state and then go back to the idle state.

In the player script 2 other functions to set the values of the animators and flags when the player leaves the ladder and when is grounded.

In the ladder system script I created a conditional within the OnTriggerEnter function, if the player presses the up/down keys he is going to climb the ladder and if he presses the left/right key he falls from the ladder.

And that’s it!!! Now the player can leave the ladder at any moment.

--

--

--

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What are static libraries?

Why OpenMetadata is the Right Choice for you

The mighty “Cytools” error at Web3 smart contract development with Brownie

Agile Routine (what works and what not)

Creating A Local Kafka Cluster for Testing: A Weekend Project

The Bug Bounty Mindset That Leads To Success

Corelan — Integer Overflows — Exercise Solution

Scrum Team Maturity

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rusben Guzman

Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

More from Medium

Creating A Ledge Grab in Unity — Part 3: Snap player in the ledge position.

Coroutines in Unity

Space Craft Effects

Using Audio Tracks in Unity and Timeline