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
Learning Stencyl 3.x Game Development: Beginner's Guide

You're reading from   Learning Stencyl 3.x Game Development: Beginner's Guide You don't need to know anything about game development or computer programming when you use the Stencyl toolkit. This book guides you through the whole process of creating a game, publishing and profiting from it.

Arrow left icon
Product type Paperback
Published in May 2013
Publisher Packt
ISBN-13 9781849695961
Length 336 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
INNES BORKWOOD INNES BORKWOOD
Author Profile Icon INNES BORKWOOD
INNES BORKWOOD
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Learning Stencyl 3.x Game Development Beginner's Guide
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Introduction 2. Let's Make a Game! FREE CHAPTER 3. Detecting Collisions 4. Creating Behaviors 5. Animation in Stencyl 6. Managing and Displaying Information 7. Polishing the Game 8. Implementing Sounds 9. Publishing and Making Money from Your Games 10. Targeting Mobile Platforms Planning, Resources, and Legal Issues Index

Time for action – decrementing the number of lives


The game file to import and load for this session is 5961_06_04.stencyl.

  1. If the Game Settings dialog box is still open, click on OK to close it.

  2. Open the Manage Player Collisions actor behavior.

  3. Click on the Collides with Enemies event in the left-hand panel.

  4. Click on the Attributes section button in the palette.

  5. Click on the Game Attributes category button.

  6. Locate the purple set Lives to 0 block under the Number Setters subcategory and drag it into the orange when event so that it appears above the red trigger event RestartLevel in behavior Health for Self block.

  7. Click on the drop-down arrow in the set Lives to … block and select 0 - 0 in the Math section.

  8. In the left textbox of the … - … block, click on the drop-down arrow and select Game Attributes | Lives.

  9. In the right-hand textbox, enter the digit 1.

  10. Locate the print anything block in the Flow section of the palette, under the Debug category, and drag it below the set Lives to Lives – 1 block...

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