O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a bar for the player's health

One of the most important bits of information to display on screen is that of the player's health. Developers have also begun to think outside the box and come up with creative ways to illustrate a player's health other than just through text or a standard HUD. Capcom's Resident Evil franchise often has characters appear visibly different, such as characters walking with a limp and moving at a slower pace when injured. Dead Space uses the player's space suit to illustrate the current health by drawing a health bar on the back, although this is done with Scaleform.

Regardless, the generic HUD doesn't seem to be leaving at any time soon, so let's start by illustrating our most important information, a health ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required