Windows 8 and snapping

0 favourites
  • 4 posts
  • 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:

    <img src="http://i.imgur.com/IG5ml.jpg" border="0" />

    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

  • Could you not get by testing the value of WindowWidth?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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)

    <img src="http://i.imgur.com/35wxB.png" border="0" />

    My app in fullscreen with Layout1

    <img src="http://i.imgur.com/9Abj6.png" border="0" />

    My app in snapped mode with Layout 2

    <img src="http://i.imgur.com/Tx5z8.png" border="0" />

    My app in snapped mode with Layout 2 and changed layout size (Size 400, 1080)

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)