Window Height/Width

Just started using Construct 2? Post your questions here

Post » Sat Aug 30, 2014 5:23 pm

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.
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Sat Aug 30, 2014 6:27 pm

I guess maybe when you say the expression WindowsHeight it take the value of the computer's current height not the layout? :roll: that is an interesting question.
ImageImageImageImageImage
B
57
S
16
G
5
Posts: 852
Reputation: 11,536

Post » Sat Aug 30, 2014 9:05 pm

B
60
S
10
G
10
Posts: 1,013
Reputation: 9,165

Post » Sun Aug 31, 2014 5:50 am

@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.
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Mon Sep 01, 2014 3:11 pm

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")
B
34
S
9
G
3
Posts: 517
Reputation: 5,276

Post » Tue Sep 02, 2014 8:18 am

@Katala yes,thats the value i wanted
B
17
S
4
G
1
Posts: 203
Reputation: 1,583


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests