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

Drawing the player's name on screen

When I think of drawing the player's name on screen the Doom guy always comes to my mind. The image of his mug shot centered on the bottom of my screen is perhaps burned into my mind forever. With that in mind, I thought it would be nice to display our pawn's name on screen in the same manner. Of course, we could always replace the pawn's name with something like an image of its face just as easily.

Sometimes it's nice to know exactly which player you are controlling, especially in a multiplayer game. Often you'll just want to know if you are LocalPlayer01 or LocalPlayer02. You could, of course, have a user input their name before a game starts and then grab that data and draw it on screen as well. Let's discover ...

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