Path: chuka.playstation.co.uk!news From: "Rikki Prince" Newsgroups: scee.yaroze.programming.2d_graphics,scee.yaroze.beginners Subject: Collision Detection with the Background Date: Fri, 2 Apr 1999 00:17:42 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 14 Message-ID: <7e0ut2$5qu12@chuka.playstation.co.uk> NNTP-Posting-Host: th-en137-103.pool.dircon.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: chuka.playstation.co.uk scee.yaroze.programming.2d_graphics:928 scee.yaroze.beginners:767 Can anyone tell me how to do collision detection between the player's sprite, and a background made with the BG functions? I'm not too bothered about getting any actual code, I just need the theory behind doing this. All I can think of is to check whenever the player moves through 16 pixels, then say that the player has moved into a new cell, then check whether the cell is filled with a block which would stop the player, then move the player back to the nearest place where they are not in the cell. However, I don't know how efficient this would be. Anyone got any other ideas? Thanks Rikki