Creating a Ladder System in Unity — Part 1: Climb Ladder

Objective: Create a script to make the player able to climb a ladder.

The first step is to have some game object to use as a ladder in the scene, in this case I downloaded a ladder platform from filebase.

Then I created a new cube as a child of the platform, set the collider as a trigger, and created a new script to detect the collision with the player and start with the climb ladder mechanic.

In the player script I created 2 methods, climb ladder is to set the player values when it reaches the ladder and calculate ladder movement allow us to move the player across the ladder when the user presses the movement keys.

Next in the ladder system script, by using the function OnTriggerEnter we check for the player tag and call the Climb Ladder function.

And we have the first step ready, now the player can start climbing the ladder, but still needs to leave it. In the next article I’l show you how to do that.

--

--

--

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

Small Tips For Your Excel Sheet

Build products, skip the non-functional requirements

Getting stock quotes through KNIME

CQRS in Java Microservices

Nuerons

Write for Two-Minute Tech

How to solve the issue of querying Kafka Streaming Data? Writing а KSQL Query

Connect your Micro Service (Spring Boot Application) to AWS DynamoDB

Understanding and implementing consistent hash algorithm

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 4: Change Player GameObject Position After Animation

Slick Orbital Camera Movements using Free Look Cameras

Instantiating & Destroying Game Objects in Unity

Installing Unity & Getting Started with Game Development