Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Gamesalad Essentials

You're reading from  Gamesalad Essentials

Product type Book
Published in Jan 2015
Publisher
ISBN-13 9781784391973
Pages 154 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Miguel DeQuadros Miguel DeQuadros
Profile icon Miguel DeQuadros

Health, dying, and lives


"No Mr. Kevin, I expect you to die." Unfortunately for Kevin, by the end of this chapter, he will die. Poor Kevin! All he wants to do is save Dom. No pain, no game! Let's get into it. Let's open up a level; we are going to create two new game-wide attributes. Don't remember how? No problem. There's a lot of information to handle here! In the scene editor, and in the Inspector window, make sure the Game button is clicked, then click on the Attributes tab, and then click on the + button to add a new attribute. Both of our new attributes will be Integers; call one Health and the other Shields. Change the Health value to 100, and leave Shields at 0. We are going to create a power up that will give Kevin shields. We are now going to create two new blank actors. Again, name one of them Health Bar and the other Shield Bar. Edit each one; change the Width to 100, the Height to 2, the Color for the health bar to red, and for the shield bar blue. In the health bar, we are...

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 $15.99/month. Cancel anytime}