How to make a nice snapped mode in Windows 8?

Get help using Construct 2

Post » Sat Oct 06, 2012 3:54 pm

Hello,
I'm using the latest beta release of Construct 2 and I'm wondering how to handle snapped mode. As it is now the game is just letterboxed with huge black spaces above and under. This is not optimal and what I want is for the game to be paused and a screen showing up (that takes upp all the height of the snapped mode, preferably in metro style) that says the game is paused with a button to make it fullscreen again. Is this possible with the official Windows 8 implementation? I saw the "on viewstate snapped" event and "try unsnap" action but I'm not sure how to use them correctly. I suspect I might have to combine those with a css media query, right?Fredrik2012-10-06 15:57:03
B
5
S
1
G
3
Posts: 10
Reputation: 2,002

Post » Sat Oct 06, 2012 3:56 pm

If you want to pause the game, when snapped, just set the timescale to 0 and display a hidden layer saying something like "Paused". When unsnapped set the timescale back to 1 and hide the layer again.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat Oct 06, 2012 3:59 pm

Thanks for the fast answer, but how would I make the hidden layer take upp the full height of the snapped mode?
B
5
S
1
G
3
Posts: 10
Reputation: 2,002

Post » Sat Oct 06, 2012 4:04 pm

It's difficult in letterbox mode unless you just use straightforward scale mode and implement the letterboxing yourself. The easiest thing to do is just let it remain letterboxed.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat Oct 06, 2012 4:05 pm

Oh I see, thank you.
B
5
S
1
G
3
Posts: 10
Reputation: 2,002


Return to How do I....?

Who is online

Users browsing this forum: Nifl and 26 guests