ObsidianSpire's Forum Posts

  • 5 posts
  • Any ideas?

  • Go to the installation folder for Construct 2, then find the exporters folder within. Open htlm5 folder and you will see a good portion of the base Javascript code used. I think that's what you're asking about?

  • Hello, everyone.

    I've been trying to figure out if it's possible for the web version of a game to access local file systems for the purpose of save files as well as a textual log handled via PHP scripts to keep track of how the player approached a level. At the moment, I'm struggling to implement the AJAX object documented here: scirra.com/manual/107/ajax

    That manual page mentions what we want to do, but says that I would need to modify the server hosting the game to allow for cross-domain scripting. Is there an alternative option if I don't have regular access to the server's HTML? I found some other people asking similar questions in the forums and on other websites, but the majority of them seemed to pursue a different avenue like a Google Chrome extension that enables cross-domain scripting for all of your browsing, which I don't think should be a requirement for the game's players.

    I would share the relevant portions of the project, but it's really not much. I'm just trying to find a test script file on localhost at the moment and it doesn't do anything yet because it pops up with the different origin error. Maybe someone can point me to an example I missed about something similar.

    As an aside, I did also read about the Node-Webkit option for a pure desktop application and that does have the functionality I would like, but I would only like to pursue that if it isn't feasible for the web version to save locally; mainly because the ability to experience everything on my web site is one of my primary goals for this project.

    Thanks in advance for any help!

    Sincerely,

    Obsidian

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah, I see. I was checking too early for the text to have any changes. Thanks, plinkie. I don't see a way to give you rep, otherwise you would get some for the help.

    I changed how I was using the textboxes to make it easier to use and added some global variables, which would update their values to the textbox input every second or so. Tested it out and it seems to work as intended. Now I can go back to adding more interesting elements. :D

  • Hi, folks.

    Here's what I'm trying to do: use text boxes to store a couple of numbers that will be input by the user. I read the manual sections for TextBox and as far as I can tell I handled the object correctly, unless I missed something.

    Problem: so far the textboxes haven't shown the numbers entered, but they seem to do everything else fine.

    Attempted Solutions: I've tried a few things like making the textbox update every tick and set its text to something like this: ["Amplitude: " & TextBox.Amplitude] or adding a background to the canvas, but neither seem to have changed anything.

    Can someone look over the images below and let me know if I missed a setting or event somewhere?

    Event sheet for this specific layout and the properties for the textbox on the left. I but rectangles and highlighted what I thought were the important/relevant bits.

    dl.dropboxusercontent.com/u/19855611/Forum%20Help/Construct%20Forum%20help.png

    TextBoxes as they appear in the layout.

    dl.dropboxusercontent.com/u/19855611/Forum%20Help/Construct%20Forum%20help%20p2.png

    Running Layout in Google Chrome.

    dl.dropboxusercontent.com/u/19855611/Forum%20Help/Construct%20Forum%20Help%203.png

    It looks like those image links will not work, so I replaced them with public links to the images in my Dropbox.

  • 5 posts