[For Beginners] How to Make a Good Debugging System for Previews

Favourite 19 favourites
Tutorial written by TELLES0808Originally published on 17th, April 2013 - 1 revision

How to make a good debugging system for previews

If this is your first contact with Construct 2, you may never dare to venture into a tutorial of Debugging, but this tutorial is just for you, and may help you.

This is not a Tutorial to teach you how to debug code; it is intended to show you a method of debugging your game while in preview mode, and you'll be able to debug anything you want.

Debugging Text Body

First of all, start doing a text object and write some things inside, these things could be an event result, variables, positions, frame rates, booleans, layers, etc.

It's highly recommended to change the debug on purpose, like on the screenshot, where I wanted to test the frame rate while fighting with the Boss, and check if the Boss layer was correct, because 5 min ago I had an issue caused by a mistake, where I created the boss on the wrong layer and the explosion animations were overlapped by the Boss.
Debugging text

Debug Events

Now, you can make the events necessary to show you what you want, and make sure to the debug system only occur on the Preview mode.

I did it this way because on the Options Menu the game will have a secret debug system, where I'll create the debug text on the screen there too.

Debugging events

Including Debug to the Main eventsheet

Debugging include

Debug placement

Debugging placement

Testing the debug

Debugging alive

Long partnership, debug is your friend!

Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

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


Lordshiva1948 44.3k rep

Nice one. I like it. Keep up the good work and teach me more. Thank you

Thursday, April 18, 2013 at 9:49:19 AM
Tedg 9,893 rep

Nice this tutorial is incredibly simple and easy to follow. Thank you for this tutorial.

Thursday, April 18, 2013 at 10:56:55 AM
California 5,084 rep

Telles, can you put bigger images? They are hard to see.
Thanks for this great tutorial!!

Sunday, April 21, 2013 at 1:14:24 PM
cschnuck 1,265 rep

Good ideas, thanks for the tutorial.

Wednesday, April 24, 2013 at 8:57:10 PM
AnthonyB28 2,666 rep

Yes please put up larger images if possible.

Sunday, April 28, 2013 at 8:27:16 AM
beardedeagle 2,020 rep

Great tutorial! A must for any developer targeting mobile platforms.

Sunday, June 15, 2014 at 8:58:51 AM

Leave a comment

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