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 — adding some guns


Our players will need some tools to fight off any enemies we add later. Let us do this by adding in guns and bullets for them to use.

  1. 1. In the Layout Editor, select the Objects layer and create a sprite named PistolShot and paste the pistol bullet into it. Give this sprite the Attribute of Destroy on startup and a Private Variable named Damage with value 22.

  2. 2. Now set the Collisions mode to Bounding Box and add the object to a new family called Bullets.

  3. 3. Add the Bullet behavior and give it settings to match the following screenshot:

  4. 4. Clone this object and call it UziShot. Paste the uzi bullet image into it, set the Damage of this object to 20 instead, and have its Bullet settings match those shown in the following screenshot:

  5. 5. Do the same again for the ShotgunShot object, this time having a Damage of 18 and Bullet settings to match the following screenshot:

  6. 6. Now create a Sprite named Pistol and paste the pistol graphic into it. Have this object...