I am often using global variables as 0/1 for booleans, or in fact for any global variable. I would like to use the other option 'text', however I'm not sure if I'm using it in the right way. e.g. if i set global variable to text and by default "used" then i want to later change it to global variable = "not used" within compare global variable, it doesn't like my text. I'm probably missing out some well known syntax here for using the text, can anyone assist?
1.- yes they should work as you state
2.- do not use " when defining the variables
They don't work as I state and with or without " around the initial value it doesn't matter. If i set the intial value in the global variable CheckKey to used. Later on when I come to compare it, global variable CheckKey = used, it doesn't like the variable and I receive an error 'Unknown expression 'used' This is not a system expression or variable name in this scope'
Develop games in your browser. Powerful, performant & highly capable.
Adding a capx is useless as it's 0 events but I will explain the exact steps.
I made this and it works.
So I do have to use " when defining the variables :P
Also, the red text implies there is an error with the variable selected, maybe a minor suggestion perhaps? Cheers for assistance!
Remember to use followed by the name of the person you are responding to or they wont know you replied. I saw it just by chance. :)
I usually do! My bad <img src="smileys/smiley36.gif" border="0" align="middle" />
You have a difficult name. I think it starts with an L. Troublesome for trying to write YOU !
— Many people have difficult names, thats why I always copy their names with the mouse from their avatar :D, and yes it starts with a L.