Instance variables, how to use it

I am trying to use instance variables but I don’t know how to read/modify them from events.

Thank you :slight_smile:

The actions and conditions are under “All objects >> Variables”.

For the expression editor, you have:

MyObject.Variable(MyVar)          Tank.Variable(damage)

of course the expression Object.VariableString(Var) and structure forms are also available :slight_smile:

Could you explain it in other words? I don’t get it :pensive:

Hey, I happened to come across the same topic when using gdevelop. So just wanted to mention things about the topic. Instance and object variable are the same thing in gdevelop and thanks to them making games are easier :slight_smile: When you call object variable in action tab you use object.variable() (for example: Cloud.variable(windspeed)) as Lizard-13 mentioned clearly up there. But you can change this variables for every instances in the scene by clicking instances and changing the value of variable in the properties tab in the left.
If you still want to see an example you can check this video, it helped me understand:

PS: I don’t own the video.