- Code: Select all
height = screen.getHeight();
width = screen.getWidth();
Is there a limit on Layers?...I am trying to make a newLayer for text...I have two already that work perfect...I am using the same code as the other two and just changing the Layer name...Surely if there is a limit it should be more than two...I have double checked the code a hundred times...This is the code in the onInit function:
- Code: Select all
obj = objID;
ui.newLayer("ui3");
ui.setLayer("ui3");
ui.setFontSize(24);
ui.newText("ui3",width/2-200,height/2-150);
ui.setColor("ui3", 0, 0, 1);
ui.text("ui3", "Gate Locked!..You need a Red Key!");
ui.setLayerVisible("ui3",0);
The Layer is made visible in the onTrigger_Enter function with this code:
- Code: Select all
ui.setLayerVisible("ui3",1);
Any help is appreciated...CO