What expression is used to retrieve the value of the window height/width in the properties bar?
The expression "WindowHeight"/"WindowWidth" return a value different with the value that I type in the properties bar.
I guess maybe when you say the expression WindowsHeight it take the value of the computer's current height not the layout? that is an interesting question.
I think this tutorial will help :
https://www.scirra.com/tutorials/932/mu ... erformance
Naji but i dont want the value of the actual window height in the computer screen. I want the value that i typed in the project properties bar.
Develop games in your browser. Powerful, performant & highly capable.
ViewportRight(0)-ViewportLeft(0) and ViewportBottom(0)-ViewportTop(0)
If you take it from UI layer or otherwise parallax 0,0 layer you can just use.
ViewportRight("UI") and ViewportBottom("UI")
Katala yes,thats the value i wanted