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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Construct Game Development Beginners Guide

You're reading from   Construct Game Development Beginners Guide A guide to escalate beginners to intermediate game creators through teaching practical game creation using Scirra construct with this book and ebook.

Arrow left icon
Product type Paperback
Published in May 2012
Publisher Packt
ISBN-13 9781849516600
Length 298 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Daven Eric Bigelow Daven Eric Bigelow
Author Profile Icon Daven Eric Bigelow
Daven Eric Bigelow
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Construct Game Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
1. Preface
1. Our First Look at Construct FREE CHAPTER 2. Hello World! Construct Style 3. Adding the Challenge 4. Making Noise 5. Practical Physics 6. Custom Levels 7. Platformer Revisited, a 2D Shooter 8. I'm Throwing a Grenade! 9. Our Final Moments Pop quiz Answers

Time for action — giving our player a life


In video games, a player gets a Game Over when the character they control runs out of lives. Right now, our player doesn't have that luxury, so let's change that. In our game, the player will have a Score private variable to store how many enemies they stomped in that life, while a Lives global variable stores how many lives they have left before they lose.

  1. 1. Open the left menu for our player again. Scroll down to the Private Variables group, and click on Add/Edit to get a window similar to the following screenshot:

  2. 2. Now click on the plus button and create a number named Score. Leave the value of it at 0 and click on OK. Then click on Done in the private variable manager screen.

  3. 3. To finish, make a global variable Lives. To do so, open the right menu, and in the project tab, right-click on the item Global variables and click on the context item Add global variable, as in the following screenshot, when it appears:

    Set the value to 3 and click on...

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