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

Having enemies flash quickly as their health decreases

Gamers require some sort of feedback each time something happens to their pawn. This can be auditory, visual, or kinetic (controller vibrations). Most frequently the cues are visual, as many controllers still do not support a vibration feature, however. Unreal Tournament pawns flash red briefly each time they are hit. While UDK natively does this, why not extend that idea, and bring back something from the NES era of gaming, wherein enemies flash red as their health decreases, and continues to do so more quickly as it reaches zero.

Getting ready

Start by having your IDE open and ready to make some changes. We won't have to create any new classes, but we will alter the behavior of our existing ...

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