In this final part of setting up the Elevator, I’ll have it go back up when the Player presses the “E” key a second time after boarding the Elevator.

The first thing I’ll do is change the CallElevator() method to work as a toggle instead of assigning the _goingDown value…

In this article, I will have the Elevator move down to the Player when the call button is pressed.

I’ll start by creating a script named Elevator and adding it to the Elevator Gameobject.

Within the Elevator script, I create a method that will be used to call the Elevator…

In this article, I continue the setup for the elevator in the 2.5D Platformer. In the previous article, I went over having the Player press the elevator button when they are in range and changing the button when pressed.

This time I’ll be adding an additional requirement for the Player…

In the next couple of articles, I’ll set up an elevator that the Player will call by pressing the “E” key near an elevator call panel.

First, I’ll be setting up the behavior of the panel. For example, I want the button to change color when the Player presses the…

Today, I’ll add a lives display to the game and have the Player respawn when they fall off a platform.

First, I’ll create a variable for lives in the Player script and set it to 3.

Then I’ll duplicate the Coin Text under the canvas and change the name to…

In this part of the article, I’ll be fixing a small problem with the Player on the platform.

You can see that the Player does not move with the platform, and if I do not move the Player, it will slide off of the platform. …

In this article, I’ll create movable platforms that can provide an extra challenge to the Player.

I’ll first rename one of the platforms to Moveable_Platform and make 2 duplicates of the platform.

Next, I’ll rename the 2 duplicates to Target_A and Target_B. These will serve as the two points that…

In this article, I’ll be setting up the spheres we have to be collected by the player and setting up a UI display to show how many have been collected.

The first thing I did was to create a UI Text object named Coins. I then changed the text body…

In this second part of my article on creating a Character Controller for the 2.5D Platformer, I’ll be setting up the Gravity, Jumping, and Double-Jumping for the Player.

I’ve already created a variable for gravity and will set it to 1.0f for the moment and adjust it later if needed…

In this article, I’ll be setting up a physics-based character controller for the Player through the script. The Player will have horizontal movement, gravity, jump, and double jump all through scripting.

First, I’ve set up a very basic level using primitives. …

Brian Branch

I'm a Unity developer.

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