Game Development Reference
In-Depth Information
We now know not only what object and event the error took place in, but also in what line
of code and what code was being executed. We can see all this before even closing the
game.
At this point, it's now completely dependent on how you have programmed the game as to
what the fix is. Here are some common causes of an unfound variable:
• The variable has not been declared (create event, global variable in another ob-
ject, and so on)
• The variable was misspelled either on declaration or in that line of code
• The variable is being declared after that line of code (often declaration happens in
another object)
By understanding errors, it becomes much easier to see where the problem is and how to
fix it. No error is normally the same as another. You may cause more errors by fixing an-
other. It is completely dependent on the game being made. GameMaker also has informa-
tion about each of the possible compiler error messages in the debugging section.
Search WWH ::




Custom Search