instance variables

  • hi to all! although i have read many times the manual and the forums i still need your help to fully understand some expression for instance variables. i have lets say two in one object(boo) true or false. when i i go to the event sheet i pick that object and compare instance variable it is blanc.it says first create an instant variable. why? second, what is instance variable expression? thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Boolean instance variables is accessed via "Is boolean instance variable set". As far as I know, "Compare instance variable" only works if you're comparing string or number variables.

    I'm not sure what you mean by instance variable expression?

  • Select a sprite you have added to your layout...

    (Either from the layout directly or from Project or Object Panel)

    On the "Properties" panel you have various properties you can edit such as the name its layer angle etc

    One of these sections is called "Instance Variables"

    Under this section you can add variables that are directly attached to the object... rather than creating local and global variables in the event sheet.

    If the sprite is your player you might add a "health" value or something similar

    https://www.scirra.com/manual/73/instance-variables

  • you are right only numbers and strings can be compared . now for the "is Boolean instance variable set" what is its purpose and what does it do exactly?any example would be greatly appreciated

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