User Created Levels

Get help using Construct 2

Post » Thu Jan 23, 2014 7:27 pm

Hey, I am having a problem where I have a game where you can create levels, and I was wondering if there was any way to share user levels. (I already have a server that can answer get and post requests, I just need to know if there is any way to convert a project to a data URI?)

Thanks in advance!
Sorry about the username, old account XD
B
14
S
4
Posts: 69
Reputation: 1,404

Post » Thu Jan 23, 2014 10:47 pm

My suggestion is to start with creating Family groups called UserObjects.

You will need to create a family group for each type(Sprite, SpriteFont..) whatever is needed. make sure that your UserObjects has all required data. Then loop through each UserObject turning each object into a JSON into an array.

Then you can use the the JSON output of your array to send up to your server.

The next job is. You need to itterate throug the objects and place them in the level.

Otherwise you can't actually create a proper URI out of data. You just have to it as an AJAX.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,038

Post » Fri Jan 24, 2014 5:20 pm

Is there a way to iterate through something other than an object or is there any other way to do this?
Sorry about the username, old account XD
B
14
S
4
Posts: 69
Reputation: 1,404

Post » Fri Jan 24, 2014 7:43 pm

I solved it! There are some actions such as Save Json Data that let you do just what I wanted. If you have come to this topic looking for help, look at the Save Game page in the manual, and scroll down.
Sorry about the username, old account XD
B
14
S
4
Posts: 69
Reputation: 1,404


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests