Problem with "Cancel Fullscreen" Browser Event

Discussion and feedback on Construct 2

Post » Sun Jun 08, 2014 7:17 pm

Hi. I added an "Disable Fullscreen Mode" option to my new game but encountered an issue when using "Cancel Fullscreen". The game runs fine in window and when switching to fullscreen but when I go back to windowed mode the game is not in the node-webkit window and I have a big white border in the upper and left side.
Is this a bug with node-webkit or does anyone know how to fix this?

Image
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Sun Jun 08, 2014 7:23 pm

Thats how it looks like:
Image
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Sun Jun 08, 2014 11:13 pm

Is your "fullscreen on browser" set to off? (the project propriety), if so, you can get rid of that border by using the set canvas size action, to WindowWidth and WindowHeight just after leaving the fullscreen mode (or you can just set the propriety to letterbox scale)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093


Return to Construct 2 General

Who is online

Users browsing this forum: mekonbekon, RoboticPhoenix and 7 guests