User Created Levels

0 favourites
  • 4 posts
From the Asset Store
Awardkit
$5 USD
Create custom awards and achievement or use the many templates and create your own.
  • 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!

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Is there a way to iterate through something other than an object or is there any other way to do this?

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)