Quick request if possible?

0 favourites
  • 11 posts
From the Asset Store
Quick Color Tap!
$2 USD
60% off
A challenging game that needs quick responses!
  • Tom & Ashley

    Would it be a lot of work to add an extra option in project settings for a preview image?

    For example, to get a thumbnail to show on facebook etc, I usually manually add the following to the index.html after the <script> element.

    <font color=blue>    <img src="preview.png" style="height:1px;width:1px" /></font>

    And results in this :

    <img src="http://johnnysix.net/games/play/example.jpg" border="0" />

  • Couldn?t you make a sprite for that ? Would be more comfortable cause you can easily fill it and play with effects and so on.

    Or do I missunderstand something ?

  • This should be done using Open Graph image meta tags and I think it's assumed that users will be editing the outputted HTML themselves. I'd recommend adding it after the export then ensuring you don't overwrite the index.html file.

  • Edited the original so it's more easily understood!

    Ashley - would something like this be possible?

  • Or is possible for the user to change the template used for the HTML output?

  • I'm not too keen on adding platform specific things to all exporter outputs. I also really want to keep the export totally spartan, since an image on the HTML page itself will take up a bit more memory, not be subject to layout-by-layout texture management, and so on. If you really want this, can't you just edit it in after export?

  • Thanks for the response, I am changing it after export right now, I was just wondering if the option could be included.

    I was hoping editing the HTML file in the exporter folder would add the line,as this would allow some options, that shouldn't affect anything else, for example, to add a couple of open graph things like:

    <font color="blue">

            <meta property="og:image" content="preview.png"/>

            <meta property="og:title" content="New Project"/>

    </font>

    I just did a quick test - open graph works with a local reference and without having to do the 1px image hack. <img src="smileys/smiley1.gif" border="0" align="middle">

    <img src="http://johnnysix.net/games/fall/fb.jpg" border="0">

  • Or is it possible for a user to modify the HTML exported to create the additional metainfo and save a custom preview/icon etc , or is this part of the Construct binary?

    If the former, I'll have a go at making a plug-in instead. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I tried editing the index.html and the export.html in the exporter folder, but trying to shoehorn the additional line in didn't work.

    Is there another file/template that's referenced, or does this get generated from construct itself?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It always uses the templates in the exporter file, but there are lots of them (e.g. export-fs.html when using a fullscreen-in-browser mode).

  • Awesome, thanks Ashley. <img src="smileys/smiley1.gif" border="0" align="middle" />

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