Global Array Based Player Choose Screen and Game Player Avatar

here is the final global variable structure i came up with:

ok. How goes it? Any questions?

Not sure if you saw it but I’m trying to figure out if there’s a bug with using the label name of a button as a child name of a structure variable. You can use the parent’s name to get all of the child’s names with a for each child event and you can get the child names of children. For some reason using the button label text directly doesn’t work but putting the same string in a variable does.

I’ve been working on the advanced version. It’s getting more advanced. It’s actually pretty fun and I’m learning new concepts myself. I added glow effects for the player and buttons for the castles.

try me:

Source:

Global Variable structure has changed. The scene variables are the same.


The events are growing



I have a simple query, what is the basic difference between an array and a structure, apparently both can store multiple property values, but can you explain the details in a bit more detail?

Here is a screenshot of my updated

Arrays are ordered with an index starting at 0 while structures use text otherwise they’re fairly identical structure wise.

Array
VariableName[number]
a[1]
a[Variable(i)]

Structure
VariableName[String]
or
VariableName.String

VariableName.childName
VariableName[“childName”]
VariableName[VariableString]