vtrix's Recent Forum Activity

  • the save system uses webstorage plugin, so you can check for the local key

    local key "save key" exist, and action : clear local key

    ps: not checked but i think its in this direction

  • what are you doing with the boxes when drag is on? are you changing angles? are you using drag and drop behavior? it like something is resetting the objects angle..

    any modification that is not in the physics sense, can make physic-objects react irregular, but maybe just setting x and y to mouse could work

    edit: its probably more a question of how are you setting the angle of the object, i think your youtube example is using a complete physic solution to drag the boxes, you could get the angle of motion, and try to turn the object in that direction with physics

  • dont forget copying families and object vars, its a vital point of the copying process, actually it would make more sense to copy eventsheet or part of evensheets because if has reference to everything that is used or what is needed to run these events, so these should al be included.

  • why not batch objects per family? or have batchgroups, this would provide more control over the batching, this would also batch single objects together, like for example the spriter plugin, there's no reason that these objects should not be batched together, and in the end would maximize performance for everyone, using frames or objects.

  • at least it looks neat, yeah just displaying some data,

    going further, so if you want to do something with an array,

    lets say a drag and drop rearrange of items in the array

    would you suggest to make a temp array or somehow manipulate the json array itself

    well i guess the best way would be to duplicate the json array, then you can use the arrayfeatures

    but then how do you work with the object inside? any insights?

  • Yann , great idea's, but where i was pointing at with the weapons, was an inventory that would be divided by weapontype (shields,swords,etc..) but now i already know alot more on how i would put it together.

    i've made some progress with my first tests,

    https://dl.dropboxusercontent.com/u/616 ... index.html

    (you can click on the first icons)

    basicly 3 objects as "folders", in the folders you have arrays with again objects with the data, and ofcourse inside.. theres..another array, inception!

    now next will be the hard part, modifying data, connecting data, how to get a specific array entry, etc..

    im wondering if everything is supposed to happen in the json object or are there parts where i should generate a c2.array and work with that and then reimport to the json

  • yes, i agree the object term is just whats used in json and should stay like this, im just going thru the plugin and actually the json structure and making sense of it, here are some reference i found usefull,

    http://www.w3resource.com/JSON/structures.php

    http://json.org/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • not sure how i can add new entry's in a array object, from the inspection capx example, i guess the root object is an array, these contain 5 objects, and these objects has all the data and furter nested arrays

    found this nice online editor

    http://www.jsoneditoronline.org/

  • a use case i want to test, is having a list of objects, and then an array that links to an id of one of the objects to get that info

    i wonder if looping thru objects instead of properties would be a usefull

    if you have weapon(s) object, do you create a new object for each weapon or create new weapons thru properties ( thinking )

  • well i for one am currently looking into it and try to wrap my head around the plugin, but its looking good, the json file example is a good one to see how to iterate thru everything..

    questions that come to mind is,

    what will be the best way to import certain data, (maybe rex csv to ... ) or straight from a json editor

    exporting and saving the json string / edit : ok thats covered ... ToJson

    yes, it takes some time to really give good feedback or find problems, only way to know will be trying things out i guess, or wait

  • Yann , this is amazing work, will probably become my favorite plugin, so thank you, i was currently working alot with arrays, and was searching for a good system to have arrays in arrays recursively, for anything that needs a directory like structure, but a json structure is a complete solution, and is way better. (i still need to test it but it looks great)

    now if we only could use the dot notation for the created objects, something like get JSON.classes.thief.hp, + i also read recently that object variables can now be accessed by plugins, by AddObjectInstanceVarParam, im not 100% but maybe there's some possibilities in exchanging data from json to object variables

    anyway will test this in coming week..

  • any news on this? i can't image that there system (phpbb) should work like this, i have to relogin sometimes 3-4+ times a day, is it per session or something? i dont recall changing system that much..

vtrix's avatar

vtrix

Member since 24 Jul, 2011

None one is following vtrix yet!

Connect with vtrix

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Email Verified

Progress

15/44
How to earn trophies

Blogs