How to would i check a guitexture in a if then statement. I have been searching all over for this????for example:
var mouse:GUITexture;
if(mouse.enabled=true;){ print("test"); } }
How do i make this possible?
How to would i check a guitexture in a if then statement. I have been searching all over for this????for example:
var mouse:GUITexture;
if(mouse.enabled=true;){ print("test"); } }
How do i make this possible?
You made one tiny typo.
var mouse:GUITexture;
if(mouse.enabled == true) //should be == & remove the ;
{
print("test");
}
== is to check if two values are equal, and = is for assigning values. So you used = and you needed to use == to check if enabled is true.
You could also just say.
var mouse:GUITexture;
if(mouse.enabled)
{
print("test");
}
thx alot..ive been stumped on that. very similary to actionscript.