0 Favourites

JSON Manager PlugIn in Development

  • I am putting together a Json Manager Plugin for my own game and have gotten pretty far with it. I wanted to see if others would be interested in this when it is totally complete.

    The idea is to load Json objects from files into named slots, so that they can be referenced later in the event sheet.

    The goal is to allow access to items using standard Json object syntax for accessing properties and array items.

    So a sample json file would look like this.

    To specify Json files to load and the slots to put them in is done through the plugins properties like shown below. Using comma separated lists.

    To load the Json and access properties in an event sheet you can do

    You will notice that you load the json files and then an event is triggered when complete and a value is accessed within the object and array to display on the screen using standard Json syntax.

    Next steps:

    1) Add expressions to access array count based on a json path.

    2) Add a loop condition to iterate over an array based on a json path.

    3) Error handling.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)