Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CryENGINE 3 Game Development: Beginner's Guide

You're reading from   CryENGINE 3 Game Development: Beginner's Guide Discover how to use the CryENGINE 3 free SDK, the next-generation, real-time game development tool with this book and ebook.

Arrow left icon
Product type Paperback
Published in Sep 2012
Publisher Packt
ISBN-13 9781849692007
Length 354 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (18) Chapters Close

CryENGINE 3 Game Development Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Introducing the CryENGINE 3 Free SDK 2. Breaking Ground with Sandbox FREE CHAPTER 3. Playable Levels in No Time 4. I'm a Scripter, Not a Coder 5. C++ and Compiling Your Own Game Code 6. User Interface and HUD Creation with Flash 7. Creating Assets for the CryENGINE 3 8. Creating Real-time Cutscenes and Cinematic Events 9. Immersion through Audio Design 10. Preparing to Share Your Content Pop Quiz Answers Index

Time for action – making the HUD work


Follow the given steps:

  1. First of all, we need to load a level. Once this is done, we will disable the old HUD via the g_showHud 0 CVAR.

  2. Because we will use a new UI Action Flow Graph for the HUD, we need to open the Flow Graph. Go to View | Open View Pane | Flow Graph. Under File, we can select New UI Action.... In the file dialog, navigate to Game\Libs\UI\UIActions.

  3. Name it something like NewHUD, and click Save. The Flow Graph should be automatically displayed in the Flow Graph Editor. All UI Actions will be found in the UIActions folder of the Flow Graph list.

    Note

    The final Flow Graph will be shown at the end of this section.

  4. We start with a Start node. Right-click into the Flow Graph, and select Add Start Node. Because we want to display our HUD on level startup, we need to add a UI:Display:Display node. In the Element port of this node, you can select your NewHUD UIElement (select the Element port and click on the little browse button to select your UIElement...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image