Path: chuka.playstation.co.uk!news From: "Rikki Prince" Newsgroups: scee.yaroze.freetalk.english Subject: Re: How to stretch a sprite? Date: Mon, 3 Sep 2001 02:26:20 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 21 Message-ID: <9mumh6$s3h3@www.netyaroze-europe.com> References: <01c131ab$9b9841e0$8409e4d5@pal-s-omnibook> <9mmunt$ijv7@www.netyaroze-europe.com> <01c13302$6b125800$0f2e1bd4@pal-s-omnibook> NNTP-Posting-Host: pc-62-31-230-25-ba.blueyonder.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 "pal" wrote in message news:01c13302$6b125800$0f2e1bd4@pal-s-omnibook... > Ooops... I should have been more precise. What I want is to stretch a > sprite so that its shape becomes non-rectangular (it's called a trapezoid > or trapezium I think). Like when projected with perspective. Like in the > Star Wars openings ;) You would probably have to do it line by line, as scale down the width and height as each line 'goes into the screen'. Shouldn't be too difficult. Create a struct with a GsSprite and other details (ie. a z value) and write a function to change the z value of each every x frames, and update the scaled height and width (use trig to work out based on the angle they are going into the screen at). HTH, Rikki