GMTuts #1: Debug Logger



For my first tutorial, I wanted to start with a utility that I wrote a couple of weeks ago and has proved to be incredibly useful so far while developing HackyZack. It is always useful to have some sort of text drawing while debugging your game so that you can check the values of variables at runtime and figure out if something is working properly, or why it is not. Before, I just used to write some code within the object’s draw event and that worked, but I found myself writing very repetitive code over and over again, which I later had to go in and delete after it was working as intended. As a programmer, I knew there had to be a better solution to automate this process, which is why I decided to write what I call my Debug Logger.

Read More