How to Load XML Data Into Arrays , Variables etc.. from Server PHP - AJAX - Construct3

3

Stats

911 visits, 1,080 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Hello All

If you want to load a XML data from PHP server into arrays , variables or anything else in yor app or game check this out

All My tutorials here

construct.net/en/tutorials/construct-tutorials-2525

1) Upload the file xml.php to your server

open the c3p file

You can use the xml file in the project folder in C3 fill with the information you want , or you can dowload xml file you already have saved to a pc and upload to server ,

There are many usages for this like load fases of your game , eg fase 1 load file xyz from server , fase 2 load file xyz etc

As you will see I put 2 Ids to get the information from php file , so in the same file you can put as many Ids as you want pointing to others xml data , just make an ajax call with this especific Id for each one

Enjoy

There is another tutorial very similar with this , but with json file

construct.net/en/tutorials/load-json-data-arrays-2566

Download Files here to XML

dropbox.com/s/zl2snfwr08fpdcs/ImportXMLFileFromPHPServer.zip

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!