how to make a nuber array and combine it with a loop?
1 Like
Hi,
Arrays are not available yet, unless you make them with javascript.
In the mean time, you can use structure variables as replacement, and search while, repeat, and for each to learn about loops. Everything is on the wiki.
1 Like
For now there are no real arrays but that will hopefully change.
In the meantime you need to create a strucuture like this:
arrayStructure {
length: 2
item1: 500
item2: "Hi!"
}
Then use a repeat event with the length as argument and access the items with the repeated index
1 Like
can you plz send a link to a video or any other explanation, thank you
Oh really? Cool! Makes things simpler.
http://wiki.compilgames.net/doku.php/gdevelop5/all-features/expressions-reference
GlobalVariableChildCount(globalvar)
VariableChildCount(scenevar)
1 Like