Windows 8 and snapping

Discussion and feedback on Construct 2

Post » Sat May 05, 2012 1:06 am

Hello,
Is there currently a way to change what is displayed on-screen when a user snaps the game window to the side of the screen? (With another app taking up 3/4 of the screen)
As an example for how "Cut the Rope" solved it:

I tried poking around Visual Studio 11 and it appears that they are using media queries to do this, would that be feasible with Construct 2?

Many thanks,
Fredrik
B
5
S
1
G
3
Posts: 10
Reputation: 2,002

Post » Sat May 05, 2012 3:24 am

Could you not get by testing the value of WindowWidth?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat May 05, 2012 12:43 pm

I have managed to make it so that the layout changes to another layout when it enters snapped mode (WindowWidth =< 400 for example)
The problem is that you have to use Fullscreen (Scale) for Windows 8 apps. So when you snap it the new layout takes up just a miniscule height in the snapped window. This is because i put the WindowSize as (1920, 1080) So when I snap it, it scales the Height and Width to keep the aspect ratio. (See picture 2)
Changing the Layout sizes for Layout2 does not have the desired result. (See picture 3)


My app in fullscreen with Layout1


My app in snapped mode with Layout 2


My app in snapped mode with Layout 2 and changed layout size (Size 400, 1080)Fredrik2012-05-05 13:55:47
B
5
S
1
G
3
Posts: 10
Reputation: 2,002

Post » Thu Dec 20, 2012 8:54 pm

Yeah this is a WTF situation, Im having the same issues. The modded Win8 plugin by Iunk has support for this but not scirra's Win8 object. Just P's me off that this hasn't been fixed yet.
Check out our WIP:BroodImage
B
9
S
1
G
2
Posts: 57
Reputation: 1,443


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 14 guests