Path: chuka.playstation.co.uk!news From: Robert Swan Newsgroups: scea.yaroze.programming.2d_graphics,scee.yaroze.programming.2d_graphics Subject: Re: Flipping sprites on screen. Date: Wed, 19 Aug 1998 09:32:13 +0100 Organization: I wish! Lines: 17 Message-ID: <35DA8D8D.5809@mdx.ac.uk> References: <6rcmau$g13@scea> <35DA02AF.8093496C@jps.net> NNTP-Posting-Host: nova.mdx.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5 sun4u) Xref: chuka.playstation.co.uk scea.yaroze.programming.2d_graphics:403 scee.yaroze.programming.2d_graphics:524 Elliott Lee wrote: > > Couldn't you set the scaling member to "0-(ONE)", effectively reversing > the picture? Then you'd only have 1 sprite in memory and 1 GsSPRITE > structure... yep, scalex and scaley can be set to negative values, so -ONE would flip it horizontally if put in the scalex member. Thing you might want to watch out with this is that as it is basically a scaling operation, and these operate around the current handle or hotspot of the GsSPRITE (set by mx and my and by default in the top left of the GsSPRITE (and incidentally not useable when using GsSortFastSprite, but then you cant scale it anyway:))!) so when flipped, the hotspot would be the top right of the GsPRITE then (apparently) so maybe thats summat to watch oot for. ROb (oops, meant Rob, been avoiding typeing DEnnis for too long!)