A Short Game from Start to Finish

UE4 Weekend Challenge: Checkpoint System with Blueprints

June 02, 2014

I created a checkpoint system using blueprints in UE4.

These simple functions in the player character class allowed a checkpoint blueprint to be placed throughout the level which would act as a point for re spawning the player.

check2

chekIn

This code destroys the old pawn and creates a new pawn at the last checkpoint location before possessing it.

respawn2

A health system was not setup by default so I set one up to allow the player to be damaged and killed.

takeDamage

Another simple event is linked to when the pawn is destroyed to ensure they are respawned.

respawn