How do I copy variables from one object to a family? Currently editing project folder json files

0 favourites
  • 8 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • Okay, you make big object with lotsa variable, then you decide it should have been family all along. Is there any way in the editor to create a family type from an object type, or to perhaps simply copy the variables from one object to another?

    In the editor, it seems you have to painfully recreate them all... one by one.

    Or, and WAY easier than manually creating them one by one, is to edit the files directly in the project folder. (simply create the family type in the editor, then open up is JSON file and copy the variables from the object type you want.

    In the same way, you make other edits to your project that are sometimes easier than doing so through the editor. Fun times.

    Any advice here?

  • You have to recreate them all, good luck!

  • Lol, NEVER!

    ~back to editing json~

    Does anyone know if you can break a project simply by copying variables on on object type or family type json files?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well it's been a day you could've done it by now ? You make a Family with the same variables with an extra character to differentiate, then the events that use the old object, you change the variable to the new one because since that object is now in the Family it will adopt the new variable, then you right-click replace object with Family.

  • Well it's been a day you could've done it by now ? You make a Family with the same variables with an extra character to differentiate, then the events that use the old object, you change the variable to the new one because since that object is now in the Family it will adopt the new variable, then you right-click replace object with Family.

    I mean... I did do it, but the json way as I mentioned. Its way better.

    Open the objecttype json.txt file in the project folder. copy variables, open familytype json.txt file and paste. Takes like a simple 2 minutes, regardless of how many variables.

  • construct.net/en/tutorials/upgrade-object-family-319

    Nice this is close to what I described , I'm surprised there is a page for it

    I mean... I did do it, but the json way as I mentioned. Its way better.

    Open the objecttype json.txt file in the project folder. copy variables, open familytype json.txt file and paste. Takes like a simple 2 minutes, regardless of how many variables.

    I don't touch project files, dats scary. Maybe it's fine, I don't know.

  • I don't touch project files, dats scary. Maybe it's fine, I don't know.

    Meh, if make backup what could possibly go wrong? Its actually quite human readable. You can do all sorts of tricks in the project folder; Anything from adding extra data, to automating art asset overhaul.

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