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 Gamemaker Essentials
  • Table Of Contents Toc
Gamemaker Essentials

Gamemaker Essentials

3.8 (13)
close
close
Gamemaker Essentials

Gamemaker Essentials

3.8 (13)

Overview of this book

This book is for users experienced with game development who now want to learn how to develop games in GameMaker: Studio in a fast-paced way.
Table of Contents (11 chapters)
close
close

Drawing information


When it comes to debugging a game, it can often be helpful to draw information to the screen. Things (such as drawing variable values) can be extremely helpful in seeing exactly what is going on in the game at any one time.

Drawing text

As mentioned before, drawing text to the screen can be extremely helpful. While prototyping parts of a game, such as a health system, you could simply draw the health value in text instead of going straight to a health bar.

It's common to see counters when using text to debug games. If we want to check how many of an object exists at any one time, we can draw the number to the screen using the draw_text and instance_number functions. This allows you to see exactly how many instances of an object exist when the game runs.

We can use text to see pretty much anything during a game. Things such as the position of an object to the text the user has entered on the keyboard can all be seen by simply drawing variables to the screen as the game runs...

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.
Gamemaker Essentials
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