Path: chuka.playstation.co.uk!news From: "Omar" Newsgroups: scee.yaroze.freetalk.english Subject: Re: How to animate Character Date: Mon, 13 Aug 2001 19:56:41 -0400 Organization: PlayStation Net Yaroze (SCEE) Lines: 25 Message-ID: <9l9pl3$bcl3@www.netyaroze-europe.com> References: <9l9ju8$bcl2@www.netyaroze-europe.com> NNTP-Posting-Host: 1Cust191.tnt2.farmington.mi.da.uu.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 say you have 5 frames of animation you want to cycle through to make the character look like he is walking. if you are using sprites, you can have all of the 5 images saved under one bitmap, and then convert that to a TIM. then you can send a different image to the OT every few frames. to initialise several GsSPRITEs from your mega tim with all the frames, just change the u and v values (kinda like relative x and y coordinates on the bitmap). i think there is a more robust way to do animation on 2D, but sorry i have never written a 2D game. this should work okay with small animations that don't require a lot of frames. i think i saw something on one of the SCEI pages that has a better way of animation sprites, but you can try what i suggested for now if you are in a hurry. if you were doing this with a TMD, it would be much easier, since Craig Graham wrote an excellent utility called rsdanim which you can use to manipulated the vertices of a TMD. to scroll the background, check out the tutorials written by George Bain on the SCEE site and there is one section on parallax scrolling, starfield scrolling, horizontal scrolling, and all that stuff. good luck, -Omar