Book Image

Gamesalad Essentials

By : Miguel DeQuadros
Book Image

Gamesalad Essentials

By: Miguel DeQuadros

Overview of this book

Table of Contents (16 chapters)

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...