Chapter 9. Adding HUD Elements
In this chapter, we'll add some polish to our game prototype by integrating some animated Head-up Display (HUD) elements, and we will make some modest improvements to the gameplay in the process. We will learn how to:
- Create a layer of HUD actors that sit statically on top of our game levels
- Animate the Dynamic Cursor
- Represent the game data dynamically through HUD elements
- Communicate between multiple actors within a scene using actor attributes
- Make an actor follow the position of the mouse cursor
- Switch between scene and screen space, using anchoring
The dynamic cursor
One of the most important HUD elements in our game prototype is the dynamic cursor. Put simply, this is a special-purpose actor that we will create to ...
Get Stencyl Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.