How do I modify JSON data before it downloads?

Get help using Construct 2

Post » Wed Apr 02, 2014 12:04 pm

Hi all,

First off I just want to say I have been working with Construct 2 as a prototype/level builder for a few months now and ever since you guys helped me with an export problem it has made my life so much easier, so thanks for that!

Currently I'm curious about ways to make my level exporter more efficient. In my current project I have made a level creator that represents the level as an array which is then downloaded as a JSON file.

Before the engine the programmer is using can read in the data from the JSON file I have to run it through a macro I made on Notepad++ using regex to clear away some of the unnecessary factors (such as {"c2array":true,"size":[25,40,1],"data":, quotation marks, square brackets and commas) , then sort the data into rows as C2 just prints the whole thing on one continuous line. Is there any way this can be done within Construct 2?

Any assistance would be appreciated.

Thanks all!
B
5
Posts: 29
Reputation: 733

Return to How do I....?

Who is online

Users browsing this forum: Fenix18 and 9 guests