Two dimensional lists

I’m not sure if this is possible, or how it would look, but having a two dimensional list would be SO nice

Can you elaborate on the meaning of “2d lists”? Do you mean a way to store an x and y?

1 Like

storing x and y would be an application, yes.
2d arrays mean you basically have an array of arrays. For example, a 1d array could be:
[1,2,3,4]
And a 2d array could be:
[[1,2,3,4],[2,5,8,3],[5,7,8,2]]
It could also be written to look like a grid
[[1,2,3,4],
[2,5,8,3],
[5,7,8,2]]

1 Like

I’ve done something that can list x and y positions and reload them in. Flowlab Game Creator - Bits!

A table and Matrices would be nice.
But what we can do right now is almost what you just said and would need number manipulation.

1234,2583,5782

Each Row would be an index in the list.
Using Text Split you can find full numbers too.

1-2-3-4, 2-5-8-3, 5-7-8-2

Now if you find the row you need, you can split the text from “-”. The only hassle is if you want to change values within the row. After splitting, we can push to a new list and then when you choose which index (column) would be the number you need.

2 Likes

I’ve done this before, just takes some extra work to extract the X and Y. If it’s too hard, you can always use 2 separate lists.