Book Image

Construct Game Development Beginners Guide

By : Daven Eric Bigelow
Book Image

Construct Game Development Beginners Guide

By: Daven Eric Bigelow

Overview of this book

Construct Classic is a free, DirectX 9 game creator for Windows, designed for 2D games. Construct Classic uses an event-based system for defining how the game behaves, in a visual, human-readable way - you don't need to program or script anything at all. It's intuitive for beginners, but powerful enough for advanced users to work without hindrance. You never know when you'll need a helping hand exploring its inner workings, or harnessing its raw power to do your bidding.Construct Game Development Beginner's Guide is the book for you if you have ever felt the urge to make a game of your own. Reading this book will not only teach you to make some popular games using Construct, but you'll also learn the skills necessary to continue on and bring your game ideas to life.Starting as a beginner to Construct Classic, you'll be learning to make platform, puzzle, and shooter games, each styled after popular games of their genre. This guide covers everything from creating animated sprites, to using the built-in physics and shadow engines of Construct Classic. You will learn the skills necessary to make advanced games of your own. Construct Game Development Beginner's Guide will lead you on your journey of making games.
Table of Contents (16 chapters)
Construct Game Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Time for action — blast the robots away


Our SentryBot enemies get hurt by grenades, but let's have them pushed away from the explosion as well. In this section, we'll perform a simple position comparison to move them in the right direction, and then use our existing collision events to push them out of whatever objects they may end up stuck in.

  1. 1. In the event where we damage the SentryBot from a collision with the GrenadeExplosion object, add a sub-event to check if SentryBot.X is Lower than the value of GrenadeExplosion.X

  2. 2. Give this sub-event the SentryBot action Move at angle to move 80 pixels at 180 degrees.

  3. 3. Finally, create another sub-event for when the opposite case occurs, and move the SentryBot by 80 pixels at 0 degrees. The event should match the following screenshot:

What just happened?

To finish off our game, we used a simple set of events to move the SentryBot to the left or right of the explosion, as we had already put events in place to move the object out of the ground...