Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I just try Ajax feature and would like to make more than just requesting, i would like to use datas returned by server.
So, to understand, i made a php script returning a simple C2 array
Echo of the PHP script
I try to put that in a C2 Array and it work well
Now i would like to populate a [url]https://www.scirra.com/manual/155/list[/url]
How could i iterate on each data to use List method named Add item
Is there a better way to load that ?
Your best bet is by tokenizing your data into a single string, then loop for each token to add elements to the list.
I find the method to tokenize data so it ll be easy!
I'm not sure that is a good idea to send JSON, Plain will be enough...
What do you think about that?
Develop games in your browser. Powerful, performant & highly capable.
Plain is good enough, no need to encapsulate anything in an object. As you said, tokenizing make it so easy !