Book Image

Learning Stencyl 3.x Game Development: Beginner's Guide

By : INNES BORKWOOD
Book Image

Learning Stencyl 3.x Game Development: Beginner's Guide

By: INNES BORKWOOD

Overview of this book

Creating video games has traditionally been a long and complicated process, requiring years of experience and a vast array of skills. However, with the introduction of comprehensive game-development toolkits such as Stencyl, the fun has returned to the art of game-creation ‚Äì anyone who has the desire to create their own video game can now do so with almost any desktop computer and a free software download from the Internet!Learning Stencyl 3.x Game Development: Beginner's Guide will put you on the fast-track to learning the essentials of the powerful Stencyl game-development toolkit. You will develop a complete, ready-to-publish video game including in-game advertising, by following the clear, step-by-step tutorials, supported by numerous screenshots and practical examples.This book will guide you through all the important steps required to develop and publish your video game. Starting with the installation and testing of the Stencyl toolkit, you will very quickly advance to the fun and exciting process of creating a playable game. The step-by-step tutorials will guide you from a blank screen, right through to giving your game that final polish and sharing it with the rest of the world. Whilst developing your feature-complete video game, you will learn how to easily detect collisions in your game using Stencyl's built-in physics engine. You'll discover how to use the powerful animation tools included in Stencyl's toolkit, and you'll find out how to make your game shine with sounds and visual special effects. You will also discover how Stencyl makes it easy to utilize the touch-screen and accelerometer features of smartphones and tablet computers. You will learn all the essential skills required to develop a video game from scratch ‚Äì right through to publishing a game on the Internet and testing games  on the most popular mobile devices.
Table of Contents (20 chapters)
Learning Stencyl 3.x Game Development Beginner's Guide
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – adding more collision shapes to the monkey


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

We will use the following information to position the additional collision shapes correctly in step 3:

  1. Ensure that the monkey's Idle Left animation is visible in the center panel of Collision Editor.

  2. Click on the Add Circle tool at the top of the center panel.

  3. Referring to the previous diagram, enter the X Position (Left), Y Position (Top), and Radius information for the body's collision circle (Circle 2) into the Add Circle dialog box, and click on OK to confirm.

  4. Repeat steps 2 and 3 to create a collision circle for the monkey's feet.

  5. Save the game.

What just happened?

We've added two more collision shapes to the monkey actor to ensure that it can more appropriately interact with tiles and other actors in our game.

We can see that the collision bounds for the Idle Left animation now consists of three circles. Circular collision shapes were chosen for the monkey actor...