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

Chapter 7. HUD

In this chapter, we will cover:

  • Displaying a bar for the player's health
  • Drawing text for the player's health
  • Displaying a bar for the player's ammo
  • Drawing text for the player's ammo
  • Drawing the player's name on screen
  • Creating a crosshair

Introduction

A heads-up display, or HUD, in addition to providing a user interface (UI), offers a means of providing information to a player to allow them to interact with the game world.

UDK offers two methods for creating a HUD. The first and most simple method which we'll be covering here is Canvas. The other method, which requires knowledge of the flash language ActionScript and some fancy art skills, allows UDK to make use of a third-party tool called Scaleform to draw the HUD.

Scaleform is probably ...

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