Best practices for Snap View in Windows 8

Get help using Construct 2

Post » Mon Apr 01, 2013 9:06 pm

I'm trying to come up with a generic approach, namely an event sheet that can be included in just about any Construct 2 game layout to provide Win8 snapped behavior with a minimum of additional work. I'm hoping someone can vet the approach below, since there are some unknowns (to me) with underlying implementation in Construct 2.

Right now I have set up an event sheet that I include in all the other layouts, and the event sheet looks like the following:

It seems to work, but wondering about a few things:

1. I need to know each of the layer names or at least how many layers are in a layout to generalize this. Right now I assume a "GameLayer" on each, some could have others or not use the naming convention. Is there a way to enumerate the layers in a layout?

2. I'm relying on Groups to deactivate responses to interaction when in snapped view (discovered that hiding the layer and setting time scale to 0 wasn't enough :)). Each layout now has a Group named "UnsnappedMode" - is it ok to reuse that name across layouts? The included event sheet then refers to "UnsnappedLayer" and gets the correct one from the context of the current layout.

3. I'm deactivating a group while within a group, e.g. group "SnappedMode" deactivates itself when transitioning out of snapped view. Is that ok.

4. Lastly, the transition to and from snapped mode isn't as fluid as I'd like. I'm using Letterbox Scale mode, but when going from snapped -> full landscape, you can see what looks like a transition to scaled first (IOW, I see the game screen in top left of the confines of the snapped view) for an instant before it goes to full on landscape. The reverse is true as well, seems like the game screen is cropped before the snapped view kicks in. I've tried flipping which layer I make visible/invisible first, but the flicker is still there.

Posts: 6
Reputation: 587

Post » Fri Jan 24, 2014 6:02 am

I was just researching how to handle the different view states of Windows 8. This seems promising. But, unfortunately, it didn't get any replies waay back in April 2013.

So, now that ten months have gone by, does anybody here have comments about this or how they organize their Windows 8 snapped views?
Posts: 185
Reputation: 2,563

Return to How do I....?

Who is online

Users browsing this forum: Fasold, SAPDX and 10 guests