Path: chuka.playstation.co.uk!news From: "Chris Wallace" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Own BG with GsSPRITES Date: Fri, 19 Jul 2002 14:11:51 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: References: NNTP-Posting-Host: host217-34-82-100.in-addr.btopenworld.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 for(j=0; j<2; j++) //16 { mapcells.y = j*8+100; for(i=0; i<2; i++) //20 { a = rik_map_array[(20*j)+i]; mapcells.u = 16*a; //mapcells.v = 16*0; mapcells.x = i*8+100; GsSortSprite(&mapcells, rpOTS(thisGame), 0); } } ok im a little confused with it so im going to type here while i think over it, as i've made a BG out of sprites before and it seemed to work ok. right, first thing making it difficult is that your using a 1D array for a grid, if it were defind array[20][16] then it would make it all alot easier. x would just be j*TILE_SIZE y would i*TILE_SIZE and im not going thru what everything would me cos i cast remember without looking but the 1D array is making me confused. I'll look at the code again later and see if i can spot the errors.