Array

BlitzMax Forums/BlitzMax Beginners Area/Array

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yes, I just wanted to provide reference for using 2d array and types.

map[x,y]=new x above, is creating object, which is both 2d and have type. I thought this is helpful more than the examples in "Beginners guide ..".

Actually, map[0,0].a, and map[0,0].b, would show the usage of type and 2d array better. It shows map[0,0] has two cells. If there be any question, I will include that instance in my example.

Finally, bradford6's codes above, creates objects in a loop. Which is a smart and beautiful method. But, I find his example for beginners, like me, too advanced. Teaching is about making things easier.