Beginner's guide to Construct 2

Favourite 1322 favourites
Tutorial written by AshleyOriginally published on 26th, June 2011 - 50 revisions

Well done for choosing Construct 2! Let's get started making your first HTML5 game. We'll be making the 'Ghost Shooter' demo game. Try it out here first so you know what we're aiming for: a player who looks at the mouse, moves with arrow keys, and shoots monsters with the mouse. You'll learn everything you need to know to make a simple game - from layers to the event system!

Note: please don't ask for help in the comments of this tutorial! Instead, head over to our forum to get the best possible response to any questions you may have.

Alternative tutorials

There is an alternative beginner's guide: How to make a platform game, aimed at making a jump-and-run platformer rather than a top down shooter. You can start with either tutorial, but we highly recommend you complete both to get a good idea how to make both kinds of game!

There's also How to make an Asteroids clone in under 100 events by Kyatric which is a little more advanced but also very detailed.

Installing Construct 2

If you haven't already, grab a copy of the latest release of Construct 2 here. The Construct 2 editor is for Windows only, but the games you make can run anywhere, such as Mac, Linux or iPad. Construct 2 can also be installed on limited user accounts. It's also portable, so you can install to a USB memory stick for example, and take it with you!

Getting started

Now you're set up, launch Construct 2. Click the File button, and select New.
The File menu 'New' button.
You will see the 'Template or Example' dialog box.
Template or example dialox box
This shows a list of examples and templates that you can investigate at your leisure. For now, just click on 'Open' at the bottom of the box to create a blank, empty new project. Construct 2 will keep the entire project in a single .capx file for us. You should now be looking at an empty layout - the design view where you create and position objects. Think of a layout like a game level or menu screen. In other tools, this might have been called a room, scene or frame.

Inserting objects

Tiled Background

The first thing we want is a repeating background tile. The Tiled Background object can do this for us. First, here's your background texture - right click it and save it to your computer somewhere:

The Tiled Background texture
Now, double click a space in the layout to insert a new object. (Later, if it's full, you can also right-click and select Insert new object.) Once the Insert new object dialog appears, double click the Tiled Background object to insert it.

The Insert New Object dialog.

A crosshair will appear for you to indicate where to place the object. Click somewhere near the middle of the layout. The texture editor now opens, for you to enter the texture to tile. Let's import the tile image you saved earlier. Click the folder icon to load a texture from disk, find where you downloaded the file to, and select it.

Load texture from file
Close the texture editor by clicking the X in the top right. If you're prompted, make sure you save! Now you should see your tiled background object in the layout. Let's resize it to cover the entire layout. Make sure it's selected, then the Properties Bar on the left should show all the settings for the object, including its size and position. Set its position to 0, 0 (the top left of the layout), and its size to 1280, 1024 (the size of the layout).

Tiled Background properties
Let's survey our work. Hold control and scroll the mouse wheel down to zoom out. Alternatively, click view - zoom out a couple of times. You can also hold space, or the middle mouse button, to pan around. Neat, huh? Your tiled background should cover the entire layout now:

The inserted tiled background.

Hit control+0 or click view - zoom to 100% to return to 1:1 view.

(If you're impatient like me, click the little 'run' icon in the window title bar - a browser should pop up showing your tiled layout! Woo!)

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.


Unhy 1,362 rep

Awesome, this is so intuitive and complex. Thank you for your software guys, thank you for perfect tutorial Ashley! I´m happy for last two haurs playing with that. Maybe I finaly make my dream -to create a game- true :))

Wednesday, December 21, 2011 at 10:55:47 PM
kenny56 2,768 rep

Thank -you
Very good tutorial,I enjoyed it a lot plan on mess with this and most likely buy it.

Monday, January 02, 2012 at 1:24:18 AM
Banzai5150 3,747 rep

Thank you for your Tutorial, it helped me jump right in and learn how to do things properly.

Tuesday, January 03, 2012 at 4:23:55 AM
siron 1,152 rep

Great Tutorial. This will come handy. Thanks

Tuesday, January 03, 2012 at 3:43:34 PM
Noblesse 1,044 rep

This is amazing!

Thursday, January 12, 2012 at 2:10:59 AM
kirkthejerk 1,564 rep

If I change the project properties from "fullscreen: off" to "fullscreen (scale)", I don't see the score text anymore. How do I fix that?

Thursday, January 19, 2012 at 3:31:04 AM
Ashley 200.3k rep

@kirkthejerk best post in the forum for help!

Thursday, January 19, 2012 at 2:41:51 PM
4aKiss 697 rep

Really nice tutorial, you've covered almost everything i needed to know to start making my games, though i already have experience with game making software

Sunday, January 22, 2012 at 12:11:08 PM
kontinyu 799 rep

thanks! amazingly helpful!

Monday, January 23, 2012 at 9:57:29 AM
Furevika 1,863 rep

Great tutorial, this looks like a really robust software! Looks like it's going to let me do just what I wanted to.

Sunday, January 29, 2012 at 9:47:37 PM
carminielloz 9,169 rep

i have been very busy for the last 3 months ,
had a chance tonight to creat the alien game again ,
it only took me an hour ( as i was downloading stuff for my i pad on the other computer , playing god of war on my ps3 and sipping a beer ..... I love scirra . I hope i can find more time to create some nice videogames soon. thx for being so awesome and easy to understand !!!

Tuesday, February 07, 2012 at 5:34:18 PM
pommegenozide 712 rep

Thank you for this comprehensive tutorial, otherwise I would had been overwhelmed by Construct already :p

Wednesday, February 08, 2012 at 7:24:29 PM
GearGames 5,841 rep

@Ashley, check your PMs! I sent you a message of what you must do :)

Wednesday, February 15, 2012 at 1:26:07 PM
gvorris 587 rep

Awesome tutorial!keep up the good work!

Tuesday, February 21, 2012 at 12:25:17 AM
Qvestor 687 rep

Excellent tutorial

Tuesday, February 21, 2012 at 10:10:34 AM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.