Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
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