Path: chuka.playstation.co.uk!news From: "Nigel Critten" Newsgroups: scee.yaroze.freetalk.english Subject: todays question "tpages" Date: Sat, 17 Mar 2001 02:42:50 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 30 Message-ID: <98uj59$6f15@www.netyaroze-europe.com> NNTP-Posting-Host: host213-122-15-111.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Got the map routines working last night, so I can now import a tUME map. So to the question, can the tile sheets be wider than 256. for (county =0; county < 13; county++) { for (countx = 0; countx < 19; countx++) { gscell[count].u = (countx * 16); gscell[count].v = (county * 16); gscell[count].cba = GetClut(tilestim.cx, tilestim.cy); gscell[count].tpage = GetTPage(GsSprite4bit, 0, tilestim.px, tilestim.py); gscell[count].flag = 0; count++; } } that how I grab the tiles at the moment and everything seems fine except when the .u goes over 256, the tile sheet is 320 wide, when it reaches tile 17 it wraps round to 0. 17*16 = 272 which is the first tile to go over the 256 boundary, the next line down gets stranger... any ideas, i'll post the source again if its going to help? Thanks Nigel (the pain)