Naming each instance variable when ever new dynamic object is being created


#1

Hello, I’m new to GDevelop. In my project, I have created an object and dragged it onto the scene. I have used “create an object” at a particular position in the Action(in the code section), how can I give different instance variable numbering for each dynamically created object in the scene.


#2

When you create an object it is automatically selected: All next actions will apply to that object.
Just do it how you would intuitively do:

create object Block
set object variable of object Block to Random(9).