Browser plugin - 2 questions

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
Logo Quiz with 150 prepared logos and answers, automatic question and answer mixing
  • 1) I want to use the Browser plugin to set the game window position (in non-fullscreen mode), but I don't understand how to do it correctly, what formula should I use? I understand how to do it in the game, for example, using the viewport, but here it's like Windows itself. Or should I just manually adjust the coordinates by eye?

    2) I minimized the game using command "minimize window" on PC. Can I now restore it by pressing a key? Or is the only option to hover over the game and maximize it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here's an example of switching to full-screen mode and back.

    construct.net/en/forum/construct-3/how-do-i-8/properly-set-cameras-location-188514

    But if you've already minimized the game window, it has lost focus in your operating system, and you'll need to hover over it and maximize it yourself.

  • Here's an example of switching to full-screen mode and back.

    https://www.construct.net/en/forum/construct-3/how-do-i-8/properly-set-cameras-location-188514#forumPost1130035

    But if you've already minimized the game window, it has lost focus in your operating system, and you'll need to hover over it and maximize it yourself.

    Thank you!

  • I received help with the answer to the first question, a person helped me, here is the source code, thanks to which you can fix the game window in the center of the screen.

    X - PlatformInfo.ScreenWidth/2-PlatformInfo.WindowOuterWidth/2

    Y - PlatformInfo.ScreenHeight/2-PlatformInfo.WindowOuterHeight/2

    Text - PlatformInfo.ScreenHeight&" : "&PlatformInfo.ScreenWidth&newline&newline&

    PlatformInfo.WindowOuterHeight&" : "&PlatformInfo.WindowOuterWidth&newline&newline&

    PlatformInfo.ScreenHeight/2-PlatformInfo.WindowOuterHeight/2&" : "&

    PlatformInfo.ScreenWidth/2-PlatformInfo.WindowOuterWidth/2

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