Hey guys,
I read the arrays and loops tutorial, and also looked at the FAQ sticky regarding arrays. But I can't figure out something.
I'm trying to create a chessboard, and so I thought an array of 8x8 sprites would be perfect. But I can't figure out how to implement it and make it work.
I have an arraySquares object, width 8, height 8. I tried to populate it in a loop but either I must be doing something wrong or perhaps an array is not the right thing to use for this.
I added an event with 2 conditions, OnStartOfLayout and For curLine from 0 to 7, and then System->Create Object->square on layer 1 at (400 + curLine * 35) and expected to see 8 squares there when the game runs, but there's only one.
So please let me know what I'm doing wrong, or better still, what approach would you take if you wanted to draw a chessboard. Next steps I want to make other sprites drag-and-drop-able and they should "snap" to the right square.
Thanks in advance.