You are not logged in.
Pages: 1
I noticed some scripts require that "Treat Uninitialized Variables As Zero" (TUVAZ) be unchecked, such as collision_triangle_init().
Well, a simple way to check that is something like this:
if (variable_global_exists(""))
show_error("Error 0xn00b: You fail at using Game Maker. Treating unknown variables as zero is a disease", true);
EDIT: The indentation is not working.
Last edited by Big J (2012-04-11 21:31:07)
Offline
Not only that, those same scripts won't work in newer versions of GameMaker that don't properly support that kind of variable checking.
Although I like your solution, I think in the future I'll just separate those portions of the scripts into their own initialization scripts.
The indentation thing is a side-effect of the code highlighter which is actually a code reformater. Only code within { curly braces } is indented.
Abusing forum power since 1986.
Offline
Nice solution!
Offline
that's a good idea...well done and keep it up
Last edited by johnson33445 (2014-11-20 03:06:08)
Offline
Pages: 1