Path: chuka.playstation.co.uk!news From: "Harvey.C" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Collisons Between 2 Sprites Date: Fri, 11 Dec 1998 09:14:18 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 17 Message-ID: <3670E26A.741B@mdx.ac.uk> References: <364BBBBD.39EF0F37@aol.com> Reply-To: hc054@mdx.ac.uk NNTP-Posting-Host: stu-dialup3.mdx.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.04Gold (Win95; I) Omar Metwally wrote: > > I can make a function to detect 2 sprites colliding, but I don't know > what to make the 2 sprites do once a collision is detected. Could > someone please write a function or give me code to prevent them from > overlapping? t-h-a-n-k y-o-u i-n a-d-v-a-n-c-e You are REALLY starting to scare me now! Anyway, check out my helper library at http://www.netyaroze-europe.com/~harveyc/ It contains macros for collision detection. It also contains a limitrange macro (from the Yaroze manuals) which you can use to prevent your sprites overlapping. -- Regards | E-mail: hc054@mdx.ac.uk Harvey | ICQ: 4269478