[Bug?] Pressing F11 does not make game fullscreen

0 favourites
  • 9 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • For some reason, I can't make my game full-screen by pressing F11 (at least during preview mode). It works for all other webpages, just not the game.

    Not sure if this is a bug.

    Using Construct 2, version r108.2

  • It works for mine, I tried Chrome IE9 and Firefox. (in preview)

    I have a beta online for testing here:

    http://visualparadox.com/games/pucked/

    does f11 work for you with it?

    it's in letterbox scale mode, webGL on, hide address bar=no

    do you have functions to scale the screen, or do you let Constuct2's scale do it? I had to remove all my manual scaling, it seemed to conflict. (the background wouldn't always scale until I took my scaling out.)

    Ashley will probably need a Capx example, can you make a new almost empty Capx that also won't go full screen?

  • Do you use F11 as a key anywhere in your events? Even if it's:

    + On Key 'F11' Pressed

    --> Request Fullscreen in Browser

  • Ok. I think I figured out something.

    The game has two layouts. One for the playing area (Playing Area layout) and another that contains most of the objects used in the game and uses almost no events (Storage layout).

    I found that the Storage layout goes fullscreen when I press F11, but not the Playing Area layout. That means this isn't a bug, but something in the Playing Area's events must be conflicting with the fullscreen. I'm going to see if I can figure this out.

  • Which browser are you using? Some browsers have different shortcuts.

    Also, if your game includes the event "On F11 pressed", Construct 2 will block the browser's default action (going fullscreen) in favour of the event's actions.

  • I figured it out!

    I think this might actually be a bug. Having an "On any key pressed" conflicts with F11.

    CAPX

  • Actually, I think that means it's working as intended.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm, it might not be a bug, but I don't like it. I'd rather it didn't override in this case.

  • You're right, 'On any key pressed' should not block the browser default action. This is changed for the next build.

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