WindowHeight in LetterBox Scale issue

Discussion and feedback on Construct 2

Post » Thu Aug 18, 2016 2:44 pm

Hi, everyone.

Sorry if this has been asked before but I couldn't find a proper solution.
In my demo, I check WindowHeight so an object will bounce when it gets to the bottom of the screen.
The example works great when not maximized in NW.js window.
If I maximize the NW.js before the sprite gets to bottom it will not bounce like if the Width/Height coordinates have changed.
Is this a default behaviour in the letterbox scale mode?

Here's the CAPX file: ... .capx?dl=0

Is there a way that I can make this work no matter if the window is maximized or not?

Thank you.

Sorry, guys.
I think it's the "ViewportBottom" expression that I was looking for and not the "WindowHeight".
I come from other non-HTML5 programming languages and I have missed something like: ... reen-sizes

Best regards,


Andre Guerreiro
Posts: 111
Reputation: 3,994

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests