You can addapt what I did in one of my games.

Code:
Panel Storage:
PANEL* Panels[MAX_X][MAX_Y][5];

Panel Init:
   str_cpy(panel,"");
   str_cat_num(panel,"bmap=BackgroundTile; pos_x = %4.0f;",i*64+X_OFFSET);
   str_cat_num(panel," pos_y = %4.0f; size_x = 64; size_y = 64; flags = OVERLAY;",j*64+Y_OFFSET);
   Panels[i][j][BASE_LAYER] = pan_create(panel,-105);


The init code was run inside two loops to set the posistion of the panels at the correct x,y location. This worked for 360 panels. if you need a different bitmap for each panel then use a text object for storage of the bitmap names.


Our new web site:Westmarch Studios