Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Scott Cartier Newsgroups: scee.yaroze.freetalk.english Subject: Re: Animation Date: Mon, 25 Jan 1999 10:01:35 -0800 Organization: SCEA News Server Lines: 53 Message-ID: <36ACB17F.FD40FCFE@vmlabs.com> References: <36AC9E5C.D8E74512@which.net> NNTP-Posting-Host: vmlabs28.vmlabs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en I'm sure there are other ways, but this is how I do it. First, of course, you need to create each frame of animation. You can draw them individually or render them in a 3D package, for example. Then pack them all into one big TIM such that each frame of animation is side by side. So if you had four frames of animation, your final TIM might look like this: +---+---+---+---+ | | | | | | 1 | 2 | 3 | 4 | | | | | | +---+---+---+---+ Or if that makes the image > 256 pixels long then you can create multiple rows like this (remember each tpage is only 256 pixels wide): +---+---+ | | | | 1 | 2 | | | | +---+---+ | | | | 3 | 4 | | | | +---+---+ Set the H and W of your GsSPRITE to the height and width of the actual sprite. Then use the U and V parameters in the GsSPRITE structure to point to whatever frame of animation you want. I have a little utility which helps the packing of the individual animation frames. It's called Sprite Assembler and you can find it on my page: http://www.concentric.net/~dsyaroze/insider Feel free to email me if you have questions about all that stuff above. Scott > Good Day, > > Does anyone know the method of implementing animation in 2D games? > Like how do I make images for the animation and can I use any paint > program to make them. > How do I implement the animation in the code? > > Please reply anyone ASAP. > > Max