To use object’s variables, you need to use the conditions/actions in “All objects > Variables” (you’re currently using the “scene variable” conditions and actions for the objects, obviously it will not work as intended).
By the way, “Pick all XXX” is useless in your code.
If you use object variables, creating variables from the object’s editor, you must create a different object for each scrollbar, because when you create an object in the scene the object does not inherit the variables created from object’s editor. Did not why this happens ?. The new object in the scene hasn’t created variables. It has 0 variables created.
So, I create the variables from objects in the scene, to share a single object.
That is, if I use object variables, I must create an object for each scrollbar, for example ScrollBar1, scrollbar2, scrollbar3, etc …
Instead, creating the variables from objects in the scene only use one object (sprite).
‘Pick all’ is not right, then, What should I use to select the object with the specified id ?.
It is indeed inherit, they are just no shown in the instance variables.
Just the id condition you already wrote (Pick all XXX just takes all the instances of XXX into account, which is what GDevelop is already doing, then your “id” condition restrict that set of instances, etc).
I have made changes related to object’s variables.
And, finally, i see that the condition:
if Variable Boton.Variable(id) = Variable(id) —> Do … to the position of Boton, select all Boton sprites, and modify the position of all sprites of type Boton.
How I can program change the position of the button with the specific id?
I would rather do a For each on SliderVertical instead of For each Boton and For each Info as you want to proceed each sliders. Then, let the conditions the same they are : GDevelop will “browse” through all “Sliders” in an independant manner and select the correct Boton and Info objects for each Sliders.
Just need to replace Variable(id) with SliderVertical.Variable(id) (it’s an expression and you want to get id’s variable of an instance of SliderVertical)