How to switch fullscreen scale modes in runtime?

0 favourites
  • 7 posts
  • Hello.

    Like the title says. I'm trying to switch between fullscreen scale modes during runtime with the 'request fullscreen in browser' action but I can't get it to work. Cancelling and requesting fullscreen work fine, but switching between scale modes doesn't. It won't change away from what I've set it to in the editor. I'm using 'On key pressed' conditions to trigger the changes.

    Also, is there a way to query device/screen resolution with events?

  • Usually in Games you would have a options menu that allows you to Adjust these before gameplay begins...

    Using pull down lists or something similiar

    I found when using Chrome having a "Fullscreen" Button on your hud or gui works better than a keypress...Chrome uses 'F11' normally to change to fullscreen mode..You could over ride this I'm pretty sure

    There is a thread about overiding browser default keyboard shortcuts somewhere..which may assist you also

    If you look closely when you set up your events

    you can make any type of Fullscreen mode occur as long as it connected to an event....

    I've tested it works every time..especially if you use a simple system of pull down listsboxes or radio buttons to switch modes..

    I cant see any reason why key presses wouldnt work

    but the same issue happens for me occasionally which is why I prefer to use a menu based options ..which has the advantage of being able to set fullscreen mode before gameplay begins

    I think the Manual entry on this says that Some browsers "may or might" require a onscreen button to enable that request Full Screen in Browser event.

    It is closely tied to the Window Size functions and the to a lesser degree the layout size...

    changing layout size isnt a great idea during run time..but you can dynamically alter the window size ...

    Perhaps checking to see if the full screen window size matches or correlates to the Aspect ratio of the device that you are trying to change to fullscreen might help..

    I've had no troubles with the Node web kit export ...

    Could you post a Capx or show an example demo..

    and include which browsers you intend to use...

    Hope that helps

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the reply :) I'll be sure to take a proper look when I have a bit more time and reply again then. Regarding target platforms; desktop deployment is what I'm after, so node-webkit all the way.

  • Here's a small test capx, press 6 to switch between the three modes.

    If for instance I have Scale Outer set in the editor settings then the runtime will *always* use that scalemode. So going from Scale Outer to Scale Inner or Crop or whatever with Request Fullscreen has no effect. I get my fullscreen, but the scale mode stays the same.

    I tried to link the switching to buttons just to check and it's the same thing.

  • Bump.

    Shouldn't this work? I'm doing this from user-initiated events, just as the manual prescribes.

  • I'm having this issue as well. it seems that changing the different fullscreen modes does nothing in runtime, it just uses whatever mode was set in the authoring app and stick with that. I'm trying to do this with Nodekit.

    What I want is for the user to have the option to play in fullscreen mode with the game scaled to stretch to the edge of the screen, or to play at the native 1024x768 size.

  • I know that this was posted quiet a long time ago.

    Anyway I made a feature request on this one HERE.

    If you read this please support my request and let's try to get Ashley moving towards adding this feature.

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