Read from random File

0 favourites
  • 1 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • I know there is no direct way to do this, but I am open to suggestions.

    I want to be able to read from a local folder a series of xml.







    I want to be able to point Construct 2 at a folder, pick a file at random, and load it. One way is to say get file Int(Random(0,100))+".xml" or something like that. But I'm not seeing a way to do it on the fly. This leads to issues like people slipping bad data into an XML file.

    (maybe put some type of key system in there)

    I could make it one large XML, but I don't know if that is scaleable. Consider this, if I have an XML with 200 nodes of level data, you have to walk that entire document every time. If you break it up into 200 files, your app can target a much smaller dataset.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)