Path: chuka.playstation.co.uk!news From: Kevin Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Many images in one .tim Date: Fri, 10 Jul 1998 21:50:07 +0100 Organization: Reality-Bytes Coding Group Lines: 40 Message-ID: <35A67E7F.807E7F4D@reality-bytesX.demon.co.uk> References: <35A5CB30.14D75ED6@hi.is> NNTP-Posting-Host: reality-bytes.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) You can display any part of any image individually, take a look at the GsSPRITE structure, (page 32 of Library Reference book) it has the members :- unsigned short w Width of image unsigned short h Height of image unsigned char u x offset of top left of image within TIM unsigned char v y offset of top left of image within TIM among others. Note that the u and v members are 'unsigned char ' which gives them a maximum value of 255, because of this, I tend to keep my sprite pages down to 256 X 256. Modesty almost (almost but not quite) prevents me from suggesting that you take a look at my stuff on sprite manipulation and animation. It's at http://www.netyaroze-europe.com/~gunhead/ftp/Blaster/blaster.zip It aint brilliant, still in very early stages. But it's an example. Hope this clears it all up for you. Kevin Remove 'X' from address to email me. Ari Pall Albertsson wrote: > I have a .tim file, that has many different images in it. Can I cut it > down when I've downloaded it to the Net Yaroze, so I can work with > individual images or do they have to be in separate .tim files? > Can anybody help me?