Platformer Enhancements - Wall Jumping

6

Index

Stats

22,217 visits, 73,557 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 28 Jan, 2013. Last updated 19 Feb, 2019

Introduction

In this tutorial we are going to add some additional functionality to our platformer games in the form of a wall jump action for our character. This is a tutorial focused on the actual mechanics and events needed to add wall jumping to your character and also some options for tweaking or further controlling the way wall jumps work based on the needs of your particular scenario.

Also, please remember if you find this tutorial helpful, use the Vote button to make it easier for others to find it as well. Thank you and have fun!

You can also find my Double Jump tutorial here: Platformer Enhancements - Double Jump

Tutorial Info

Skill Level: Intermediate

Construct 2 Version used: r114

Can use Free Version: Yes

Plugins used: None

Projects Used: Platform 1 (simple movement)

Note that there are multiple ways that the wall jump can be accomplished and I will show a few examples of the different events that can be used to create the effect so you can see how they behave and hopefully provide you with enough of a base for you to create a wall jump that fits your particular games play style. I will also add some options for enhancing the wall jump behavior as well by adding features to it such as limiting the number of wall jumps, giving the wall jump to the character as a power up and even limiting the amount of time the power up remains active.

Prerequisites

Before beginning this tutorial you should have a basic understanding of the default platform behaviors in Construct 2. You should also have a basic understanding of how to create sprites, layouts, variables, events and actions in Construct 2 and how to use them. You should definitely complete one or both of the basic platforming tutorials first as this will ensure that you have the required baseline knowledge of Construct 2 prior to starting this tutoial. You can find them here: How to Make a Platform Game and here: Build a Platform Game - A beginners Guide

Setup

We will start with base project by using one of the built in sample .capx files included with the download of Construct 2. In this case I will start with the "Platform 1 (simple movement)" example that comes with Construct 2. This tutorial can be completed using the free version of Construct 2 (Using version r114 for my example which can be found here: https://www.scirra.com/construct2/releases/r114 ) once you have Construct 2 installed, from the start page choose the Browse Examples option:

From browse down the list of examples and choose the Platform 1 (simple movement) project.

Once you have the project open, we are now ready to start our work. The first thing we will need to do is make some changes to the layout to make it a better test environment for our wall jumping behavior. To do this we are going to create some simple walls so that we can test various scenarios and tweak our parameters as needed. Feel free to run the project at this point so you can get familiar with what is included by default.

Here is the basic layout of the project when you first open it:

In order to give ourselves some walls to work with we will first use the built in drawing tools to create our own wall sprites.

  • 0 Comments

Want to leave a comment? Login or Register an account!