Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gamemaker Essentials

You're reading from   Gamemaker Essentials Learn all the essential skills of GameMaker: Studio and start making your own impressive games with ease

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784396121
Length 154 pages
Edition 1st Edition
Arrow right icon
Toc

Errors


We will start with common errors in GameMaker. Things such as undeclared variables or non-existent objects will cause GameMaker to produce an error (stating basic information of what went wrong and where in the code it happened). There is no single cause for this, so we will look at a few common errors that may occur and see how to read them in order to get closer to finding the problem.

Undeclared variable

The following is a screenshot of an error produced by an undeclared variable:

All GameMaker errors look similar to this one. However, depending on the problem, there may be more or less information provided regarding the error.

Here is an image of just the text so that we can better read what is going on:

You will probably notice the lines of hashtags; these are more or less just borders or line breaks. Feel free to ignore them.

The first four lines are important; they show exactly where and in which object the error took place. As you can see, the error states that in action number...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime