gnysek
Member
I've tried to reproduce it in any way to help, but found no bugs. However, I have one idea about that variable name, which could happen here:
As game maker function names are using snake_case, I'm generally sticking to naming my variables in same way too, and I'm never using capital letters (so camelCase).
Also, there's no difference if debugger shows
Remember that GML is case-sensitive, so havingIf (global.myVar==true)
global.myVar
and global.myvar
mean there are two different variables, and that way changing one of them to true doesn't mean other will be changed. Double check that you've not used wrong form.As game maker function names are using snake_case, I'm generally sticking to naming my variables in same way too, and I'm never using capital letters (so camelCase).
Also, there's no difference if debugger shows
1
or true
. GML will still handle all variables <= 0.5
as false
, and all > 0.5
as true
in comparisons.
Last edited: