UNITED CRAFTS

IN MOTION

Johnny Chang

Narrative & Level Designer

Prototype

2020
Third Person

Infinite Runner

"Running Man"

Spare time project, using Unreal Engine.

In this prototype, the goal is to run as far as possible, without colliding with obstacles.

The level assets are procedurally generated as the player progresses.

Prototype Overview

Setting up the Floor Map

Spawnable Floor Map

Basic floor mesh with fence on either side.

Attach Point

The attach point marks the spot of where the next spawned floor map is supposed to anchor.

End Trigger

The trigger box is activated when the player passes through it, initiating a countdown to destroy the floor map.

Setting up Spawn Properties

Setting Spawns

First, the three possible spawn points (SpawnLeft, SpawnCenter and SpawnRight) are defined through the “Set Spawn Point” script. Then, spawnable obstacle meshes are defined through the “Set Obstacles” script. And lastly, a function calling one of the obstacle meshes to spawn at one of the spawn points.

Construction Script

Construction Script for Spawn Functions

Set Spawn Points Script

Defining the spawnable points for obstacles

Set Obstacles Script

Defining the spawnable obstacles for the BP actor

Adding floor map
Removing floor map
Adding Floor Maps

At the start of the game session, a row of map tiles are created to meet a defined desired amount to begin with.

As the player moves forward and overlaps an “End Trigger” box, the triggered map tile is removed from the level, while a new one is created at the opposite end of the row of map tiles.

Add Map Script

Adding maps to meet the desired amount to have in the level from the very start

End Trigger Remove and Add Map Script

Remove the map tile and add a new one at the opposite end of the for loop, when the player overlaps the “End Trigger” box

Gameplay

Player Movement, Game Over & Score Count

Player Movement:
The player character is always moving forward and is only allowed to move left or right.

Game Over & Score Count:
When the player collides with an obstacle, the meter count stops, and the character gets knocked down. The level is reloaded and the meter count is reset to 0.

Player Movement and Death Scripts

Player Movement and Death State

Game Mode Scripts

Game Mode

Share this: