Path: chuka.playstation.co.uk!news From: Paso Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Make a sprite change its frames Date: Mon, 28 Apr 1997 23:55:07 +0200 Organization: PlayStation Net Yaroze (SCEE) Lines: 20 Message-ID: <33651CBA.D92@mbox.ulisse.it> References: <3363978B.1456@mbox.ulisse.it> <336589c9.2505158@news.playstation.co.uk> Reply-To: giulio@mbox.ulisse.it NNTP-Posting-Host: 195.45.20.194 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (Win95; I) Alex Amsel wrote: > Each sprite refers to a texture page and a u,v coordinate. > > So you could layout your frames next to each other or whatever, and in > each frame update the u,v and possibly texture page information. > > e.g. 2 frame animation > > Frame 1: u = 0, v = 0 > Frame 2: u = 32 v = 0 > > This could be valid if your sprite was 32x32 and the next frame was > definately to the right of the 1st frame. Hi Alex and thanks, this is a way similar to one I already had. Are you sure this is the best and fast way to do "sprite frames changing" ? Anyone has another idea?