How do I Work with external files? Ini, XML, JSON?

Get help using Construct 2

Post » Tue Nov 17, 2015 12:43 am

I just need examples, I am having trouble finding any. The save and load function is useful, but I need to save specific data tied to tables for Objects and pull data out of this and even write BACK TO IT. I can do this in other languages, maybe not the easiest, but is totally possible using logic like

write [object.VarStat##] path: $APPDIR$ + "/data/" line: ##

same thing with loading. And line: ## can be arrayXYZ: #, #, #, #### (X, Y, Z, length/position to start reading/token/etc}

Now regardless of the real syntax or fake syntax here I just want to know if anyone can point me out examples since I'm having a very hard time and this is pretty important, being able to manage local data to object tables that is.
B
5
S
1
Posts: 68
Reputation: 515

Post » Tue Nov 17, 2015 8:47 am

Itenimum1 wrote:I just need examples, I am having trouble finding any. The save and load function is useful, but I need to save specific data tied to tables for Objects and pull data out of this and even write BACK TO IT. I can do this in other languages, maybe not the easiest, but is totally possible using logic like

write [object.VarStat##] path: $APPDIR$ + "/data/" line: ##

same thing with loading. And line: ## can be arrayXYZ: #, #, #, #### (X, Y, Z, length/position to start reading/token/etc}

Now regardless of the real syntax or fake syntax here I just want to know if anyone can point me out examples since I'm having a very hard time and this is pretty important, being able to manage local data to object tables that is.


There are numerous examples of using everything from arrays, ajax, json, dictionaries and local storage both in the Tutorial section and throughout the forum.

For example, the excellent tutorial from Kyatric: Asteroid clone in less than 100 events includes (on page 6) a thorough example of using 'Local Storage' to store information.

Maybe this will help?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
147
S
34
G
89
Posts: 5,993
Reputation: 62,851

Post » Tue Nov 17, 2015 10:33 pm

Yes thank you very much, I think this is a good start, if anyone knows of any good examples off hand feel free to post those as well. I'll keep searching but knowing about these examples is a great help to me and my friends.
B
5
S
1
Posts: 68
Reputation: 515


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests