Microsoft MakeCode

Can anyone help me

how can i put an array of positions
code: https://makecode.com/_J8b2A6hV5Jit

Since positions are each separate fields, you’ll just need to use arrays of numbers for each dimension (x or y).

You can link them, if you want to, so that if you want x and y to be paired, you can select the same index from both.

If you don’t want them linked, and you only want numbers falling from a certain number of x locations, you can do something like this:

Or, try it mathematically:

Hope that helps!

1 Like

thank you