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
Construct 2 Game Development by Example

You're reading from   Construct 2 Game Development by Example Learn how to make games for multiple platforms with Construct 2.

Arrow left icon
Product type Paperback
Published in Jun 2014
Publisher
ISBN-13 9781849698061
Length 230 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
John Bura John Bura
Author Profile Icon John Bura
John Bura
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Construct 2 FREE CHAPTER 2. Inputs and Controls 3. Variables and Arrays 4. Game Mechanics 5. Making a Simple Shooter 6. Making a Tower Defense Game 7. Making a Puzzle Physics Game 8. Exporting Your Game A. Where to Go from Here
Index

Starting the project

Once you have started a new project, you need to change the layout size to 640, 480. Then, we need to add some art. The first thing we need to add is the player. Find a circular graphic and add the sprite. Make your sprite 50 by 50 pixels and change its name to Player.

Your layout should look like the following screenshot:

Starting the project

It's really important that you name the player as well as set the size, because when you make a lot of sprites, it can get confusing later on. Imagine if you had a game with 200 sprites and they were all called sprite1, sprite2, and so on; it would get confusing really fast. Whenever you set the size of an object, it is best to set the size in Photoshop or another program. When you change the size of images in game engines, the images can be distorted and as a result, they do not look good.

The next thing we need to do is create a background. In order to do this, we need to add another layer to the game. This can be done by performing the following...

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