Unreal Engine 4: Let’s Make: Character Speed based on Slope

Let’s Make a Character Speed system

Character speed that is directly affected by the slope the character is walking on.

Overview

LET’S MAKE a movement system that takes into account the current slope under the character and sets their speed over time.

This idea came about when a student of mine wanted to explore a landscape they created in Unreal but felt like running up large mountains and hills at the same speed they moved down was strange and unrealistic. Instead they wanted to simply slow the character down as they climb a steep slope and speed them up when running down hill.

We worked out a quick solution and I wanted to share it here for others! We will make a system that:

  • Sets the character speed based on current angle of their surface
  • Uses two line traces
  • Uses float curve to control our speed
  • Blueprint only
  • Using Unreal Engine 4.8.1

Continue reading

Unreal Engine 4: Let’s Make a Camera Spline System

Let’s Make: UE4: Camera Spline System

A Camera that follows a user created spline based on the player location

Overview

LET’S MAKE a camera spline system, in which the camera follows behind our character on a spline. Many games use a camera track, like TellTale’s “The Walking Dead series” to control the camera. In this case, we will use Unreal Engine’s “Rolling Ball” template to create our camera system. The spline drives the camera location and rotation so players can focus on platforming.

  • Using Unreal Engine 4.7.1
  • Blueprint Only
  • Uses Recursion

Continue reading