Hi,
I am trying simply to use javascript to change the width of a GUI Texture (which is my XP bar).
I created the texture by just making a GUI Texture that used a bar I created in photo shop.
My problem is that I dont know how to call a GUI Texture in javascript or how to call the width property of said GUI Texture.
Here is what have tried:
var xpBar : GUITexture;
var hpBar : GUITexture.
var PlayerLevel : int;
PlayerLevel = 1;
function Update () {
if(xpBar.width == 680)
{
PlayerLevel += 1;
xpBar.width = 0;
}
}
Any assistance is greatly appreciated.