I'm constructing a game where the player pilots a ship that can use various equipment. So far, I've created an array to store ship data, which looks something like this:
[code:2q19lrf2]Name Image Space Weapons Speed
Name Image Space Weapons Speed
As far as I can tell, that part goes smoothly. But I am having trouble populating a List object with my data. I know how to do it in pseudo-code, but not sure how I would translate it into events.
Basically, I set up my arrays. (In the future, I will just load them.) Then I set up my list with four columns (image is excluded, that's just what sprite the ship uses)
My trouble is looping an event to give the List all my array info. I'd imagine it would look something like this:
yLoop (arraysizey times)
xLoop (arraysizex times)
populate column by column
Can anyone shed some more light on how to accomplish this using events, and a bit more info on the List object? I want my events to be as flexible as possible for when I start adding more data to my arrays. Right now it doesn't input any data at all, and I could upload my broken .cap if anyone wishes to see.
I took out loops and just used variable comparisons, and now it's 50% working. It gets everything into the List, except it's in one column. I now need to put each item into a different column. Any help is appreciated.