Can I retrieve text from an external file?

0 favourites
  • 5 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • So here's what I'm trying to do...

    I'd like to be able to retrieve the text from an external .txt file. I'd like to be able to use this for things like Dialogue Trees and Array Data. I know that Arrays can save and load from JSON strings, but I'd like to be able to edit the JSON string manually and then be able to save it/load it.

    Or, does someone know an efficient way to be able to edit Array data outside of having to use events within Construct 2? I don't want to have to build an entire level editor just to have a way to edit my array information, any ideas?

  • .csv? or xml?

  • I'm afraid I have no idea about either of those formats, I was hoping to simply be able to reference a .txt (notepad) file, tell construct which lines to look for within the text file, and then return everything between those lines as a string.

    The application for this then being to store things like character dialogue, array data for level building, enemy lists/stats, and so on and so forth? I'd be all for writing a plugin to do it, except that I don't know javascript, or any programming languages at all really, except for some basic VB.

    Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, if you want to parse it yourself instead of using JSON or XML, just AJAX request a text file.

  • It's not that I want to, I just know NOTHING about using either of those file types :S, but thanks for the AJAX idea, I hadn't thought of that at all

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