Multiple XML support using AJAX?

  • Hi

    I have a quick question:

    Right now I'm using XML files for different languages (strings.en.xml, strings.es.xml, etc...) and I switch between them

    But I would like to use other XML file for levels data (o lot bigger than the languages .xml) so, I don't want to include those data inside every language file

    Is possible have loaded more than one XML files using AJAX?

    Thanks

  • This a graphic example:

    I know I could merge the levels data into the language data, but I would need to do it for all the levels type.

    If I go that way the languages files would be:

    English: 100 lines of sentences + 1000 "levels type 1" lines + 1000 "levels type 2" lines + 1000 "levels type 3" lines + 1000 "levels type 4" lines = 4100 lines

    Spanish: 100 lines of sentences + 1000 "levels type 1" lines + 1000 "levels type 2" lines + 1000 "levels type 3" lines + 1000 "levels type 4" lines = 4100 lines

    The same with each language file

    Any suggestions?

  • Sorry :/

    I have not had a good day.

    How can I not notice that you can have multiple XML objects?

    Today was not a good day, I need to sleep... zzz...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you figured it out? I am in a similar situation.

    I have 2 XML files at once to reduce the size.

    How do I access them independently?

  • Unconnected

    Just add another XML object!

  • Simple enough. Thank you.

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