Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Construct 2 Game Development by Example
  • Table Of Contents Toc
Construct 2 Game Development by Example

Construct 2 Game Development by Example

By : John Bura
3.8 (9)
close
close
Construct 2 Game Development by Example

Construct 2 Game Development by Example

3.8 (9)
By: John Bura

Overview of this book

This book uses practical examples to teach readers, and imparts the key skills and techniques of working in Construct 2 through building complete game projects. This book is for complete beginners who have always wanted to learn how to make games and have never tried. It is the perfect introduction to game development, design, and production.
Table of Contents (11 chapters)
close
close
9
A. Where to Go from Here
10
Index

Setting up the turrets


Now that we have a level, we need to add a turret. Double-click on the background, select add sprite, and then add the graphic. Make sure that the dimension of this graphic is 32 by 32; everything that we had set up earlier needs to be on this grid. Your playing area should look like the following screenshot:

First, we will add some functionality using the following steps:

  1. Add a Touch object from the Insert New Object window.

  2. Then, go to your event sheet and add an event. This event is going to be a Touch event. Remember that touch events and mouse clicks are the same.

    Tip

    It's better to set up the touch event for simple clicks. Now, people on mobile devices can play your game.

  3. When we touch the black area, a turret is spawned. This will spawn a turret on the screen. Add an On touched object event, as shown in the following screenshot:

  4. The object we want to be touched is the PlaceTurret object, as shown in the following screenshot:

  5. Click on the Done button and your project...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Construct 2 Game Development by Example
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon