Don't Walk By - 10

Don't Walk By - 10

Mar 27, 2020. | By: Evan Diamond
1 min

The tenth CGD blog post about Don’t Walk By

Overview

This week I implemented the bus drop off system.

Bus Drop Off System

At the start of every level a bus pulls up outside the building pawns spawn from the bus and the bus leaves. The first part of this was adding a tile to the level builder which dictates where the bus should stop and the pawns to get off.

bus stop

Then when a level is loaded the position of the first bus stop tile is found in the PawnManager script. The spawn position of the pawns is then set to this position. The VehicleSpawning system is then used to create a bus and set its position to the bus stop’s position. The vehicle spawning system makes a vehicle use it’s entrance animation on startup causing the bus to “drive” to the pawn position. Once there the bus goes into its idle animation whilst the pawns spawn. Once the pawns have finished spawning then the bus exits, causing the exit animation to play.

bus drop

About

Gamers developing new games.

Social Links

Our Bunker

University of the West of England,
Frenchay Campus, Bristol, BS16 1QY,
United Kingdom.