I believe I’m using the most recent version.(5.2.175) Can someone verify this?
I swear I used to be able to build structure name in the for each child event
I confirm you have to use VariableString to access the child of a structure.
Or you can write something like Structure[“” + YourVariable] - this is to force the variable to be read as a string.
I can’t find any issue with this - any chance you could send me a stripped down version of your project (or the project itself) so I can have a look? Thanks!
Super useful! I confirm I can reproduce the problem, your example is really really invaluable here.
This is not due to the new variable syntax it seems - as it’s actually not used here (and I verified it will work in a new bugfix release if we write for Button4 Player[LabelText], as long as you declare LabelText. Don’t try this now because it does not work yet - it’s another bug that is being fixed).
I’ve opened the example with GDevelop 5.2.172 and it also fails with the case Button3.
This is due to the usage of Button3 inside the for each variable. It’s a pain and your workaround (storing it in another variable) is good. It’s not a regression but I’ll try to understand what’s going wrong.
Thanks again - this was super helpful to have a real test case. Should speed up the bugfix.