Window position

0 favourites
  • 5 posts
From the Asset Store
Vector illustration of a UFO with an alien in three different positions.
  • After I export my project to dropbox when I play the program,via dropbox, the window appears at the top of the screen without the grey margins around it.The game has fullscreen off in the projects settings.My question is how can I place the game in the centre of the screen and have the grey margins showing.The window size is 640x480.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The HTML template (index.html) is different for preview and publish. Try saving preview index.html and then replace it in the published folder.

    Whoops! Looked in preview html - it could be unsuitable for upload - there's some *.js scripts attached.

    You should tweak some CSS to get border and make same center vertical align as in preview html file.

    As for fullscreen - your game runs still in window, but just without fancy borders. I'm sure that exported page is more suitable for different pc configurations, though could be a bit fancier - like one on the preview.

  • how do you save the preview html?

  • You just need to know a little HTML to customise the export to your liking. In the install directory you can view the source of preview.html to see the HTML and CSS you need to get the centered, bordered display. Don't use all of preview.html, it's the wrong format for publishing - you just need to copy the relevant bits.

  • Complete dunce as far as HTML Ashley!Could you please show me which lines to edit?

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