shama's Forum Posts

  • 2 posts
  • Information that might be useful to others, because it had me stumped for a while:

    The problem I had was how to get the HTML written out by the PHP back into Construct. To cut a long story short, my solution was:

    I used the 'download' object to download the PHP page to a local file ('scores.html'). You can then use the event 'download complete' to detect when it is available, and display it somehow.

    I tried to use the HTML object to display this local file, but despite its name it doesn't actually like fully formed HTML (i.e. a file that begins <html>). It appears to only accept a subset of HTML tags. So to remedy this you change your server side PHP file to only generate the tags recognised by the HTML object, and to not be a 'proper' HTML file.

    Tags I tried that didn't work:

    <P> <br /> <table> <tr> <td> <style>

    So now I have a fully working server-stored highscore table, but one that I can't really change the appearance of much (font size/colour) or put into a table. Better than nothing!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I agree with zikzak; tutorials are useful, but the ones that already exist help get the basics out of the way and what is now needed is more information on all the undocumented objects, effects and behaviours.

    I've only just discovered Construct, and looked at all the examples that were available to download and also the templates. So with that knowledge I tried to start my own game from scratch, and was disappointed to find that only a handful of objects had any sort of wiki entry ... and even then the entries that did exist didn't really explain the functionality and events available for that object.

    At the moment if I want to use an effect I just guess at what it does, based on the name, and try it out. Most of the time I can't see any effect happening, which probably means I am using it wrong but without docs to explain how it should be used it is very much a case of stumbling along in the dark!

    Anyway, I have got a simple game working and have now reached a stumbling block in terms of trying to find a way to display the high scores that I've been storing on a webserver. I'm sure I'll get there in the end.

    All that aside, congrats for what you've got with Construct and I do appreciate the work people have put in.

  • 2 posts