Originally Posted By: DJBMASTER
Sure you can use an array to define the position. You have 2 choices...

1) If you know the positions already use a global array.
2) If you want to calculate positions and store them in an array, you will need to know how to use 'dynamic memory', with the functions 'malloc/calloc/free'.


I am using a global array that I defined all of the positions for. My problem is the actual syntax of the code. Instead of pos_x = 256;, I used pos_x = Gridx[8];. And it errors. So I guess I'm just asking how you would actually code it. Again, thank you for your responses.