Wall Jumping! Like a Spider

--

Objective: Create a wall jump for our Character Controller

Wall jumping is one of the common game techniques in the platformer genre. Game Designers put this element in their games when they want the player to reach high located floors.

Creating Player’s Movement

Before creating our wall jump, we need to implement some movement logic to our player.

Adding Character Controller

Creating the PlayerController Script

Fields

Implementing the movement into the Update Method

At this moment, our character should move smoothly.

Add the playerController component and set this values to get the best movement behaviour.

Adding wall Jump

Let’s use an Unity Internal Method to check when our Character Controller is colliding with some wall while jumping.

Adding wall jump logic to the player movement

This is how our Update method would look after implementing our wall jump behaviour!

Final Result

Our baldy is now character jumping walls!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response