export function in level editor

Get help using Construct 2

Post » Thu Sep 12, 2013 9:48 am

Hey im creating a platformer game with a level creator and i want the uset to be able to export their created map which they can send to me in an email which i then implement in my game. So how do i create an export function in my level editor?
B
16
S
4
G
2
Posts: 46
Reputation: 2,104

Post » Thu Sep 12, 2013 11:18 am

I would use an Array to store all the data, then output it as a JSON string. You could have them cut and paste it to an email to send to you, or you could have the game upload it to a server to save.

The manual Array Download expression is actually defined as:
"Invokes a browser download of a file containing the Array's contents in JSON format. This is intended for offline development, e.g. creating level editors."

Than Manual:
https://www.scirra.com/manual/108/array

See Download, Load, & AsJSON.
B
230
S
62
G
33
Posts: 902
Reputation: 40,319

Post » Thu Sep 12, 2013 12:16 pm

Sw33t thanks!:)
B
16
S
4
G
2
Posts: 46
Reputation: 2,104


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, fens and 23 guests