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 – inserting an advertisement into our game


Before proceeding, ensure that the final, ready-to-publish version of the game is open in Stencyl.

  1. Open the Main Menu scene.

  2. Click the Events button at the top of the Scene Designer screen.

  3. Click +Add Event | Basics |When Creating.

  4. Rename the event to Display Mochi Ad.

  5. In the instruction block palette, select Game | Flash.

  6. In the Mochi section of the palette, locate the show ad with size (w: 0, h: 0) block and drag it into the new when created event.

  7. In the new show ad with size (w: 0, h: 0) block, change the w: entry to 640 and the h: entry to 480.

  8. Ensure that the new event appears as shown in the following screenshot:

  9. Click on the Settings icon in the main Stencyl toolbar.

  10. Select Web in the list of options in the left-hand side panel and ensure that the Services option is selected at the top of the main dialog box panel.

  11. Accurately enter the unique Game ID into the Mochi Game ID text box and click OK.

  12. Test the game. When the game loads the...