if I create a structure such as
“dog cat. 500 variables”
my structure will have 500 variables with leathers I can change things … now … if at some point I have to reset all 500 variables that are inside the “dog cat” structure or set them all with another identical value. .like eg “10” in gdevelop … it works if I write
globalvariable (dog.gatto) = “10” ?? the system puts me all 500 to 10 automatically ?? or do I have to do one by one ???
Another way around it is to use the reference extension: it transforms a scene variable into a “fake variable” that pipes all reads and writes into a global one. That way, you can link a scene variable to a global one, and use it in a for each event. The scene variable will not do any copy, but simply redirect the reads to the global one allowing to loop over the global one without complex copying back and forth.
I cannot, I am on my phone, not my PC, right now. I barely have the time to write this post, so I do not have the time to create a full example of the extension. Luckily, it is pretty self explanatory - just throw your global variable and a scene variable into the reference action, and use the scene variable as if it was your global one.