Activity 18.01 – Adding death, respawning, a scoreboard, kill limit, and pickups to the multiplayer FPS game
In this activity, you’ll add the concept of death/respawning and the ability for a character to collect pickups to our multiplayer FPS game. We’ll also add a scoreboard and a kill limit to the game so that it has an end goal.
Follow these steps to complete this activity:
- Open the
MultiplayerFPS
project from Activity 17.01 – Adding weapons and ammo to the multiplayer FPS game. Compile the code and run the editor. - Create a C++ class called
FPSGameState
, which derives from theGameState
class, and has a kill limit variable and a function that returns the player states ordered by kills. - Create a C++ class called
FPSPlayerState
, which derives from thePlayerState
class, and stores the number of kills and deaths of a player. - Create a C++ class called
PlayerMenu
, which derives from theUserWidget
class, and has someBlueprintImplementableEvent...