How to set family instance variables

0 favourites
  • 3 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Sorry guys, a bit of a newbie question yet again for you all. I'm just playing around with things and I have created a family for objects I want moving across the screen. As I want each different object type under the family to move at different speeds I want to create an instance variable to set this in.

    Now I have read the instructions here scirra.com/manual/142/families and it says that once you setup a family instance variable it should then be on the object itself. Unfortunately there is non showing up for me.

    I'm sure there must be a way to do this though and I must be missing something pretty obvious. Is there a way to easily set the instance variables for individual objects under a family?

    Thanks in advance for your help!

  • Click on the object, and click on Instance Variable in the properties window.

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/ab4b5bf1-6a82-4ed3-9d6e-071d6634354d/2013-06-03_2043.png" border="0" />

    You can also set an instance variable while you have the family object highlighted. That instance variable is true for all objects that are part of the family. And will also show up in the image above.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks heaps for your help, that's exactly what I was looking for. I was trying to set it by right clicking the object under the properties tab and editing the variable that way (which obviously doesn't work!)

    I knew there would have been an easy way to do it, and I knew I would have felt stupid after being told ;) but hey we all have to start somewhere!

    Thanks again.

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