From: "Storm" Newsgroups: comp.os.msdos.djgpp Subject: Collision Detection Date: 30 Jun 1997 10:14:33 GMT Organization: Info Avenue INTERNET Access Lines: 29 Message-ID: <01bc8525$4d347960$736c74cc@digital.twlakes.net> NNTP-Posting-Host: 204.116.108.115 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I need some help with some collision detection, in a all directional scroller type game.. I have stored the map in an array variable of a structure like this struct { int min_x, max_x; int min_y, max_y; }COLLIDE[30][40]; struct { int car_min_x, car_max_x; int car_min_y, car_max_y; }CARBOX; and am using the car_x, car_y variables to track the cars position.. I want to be able to tell when the car hits a tile of type 1, which means its solid, so I don't let the car move that time.. Pleeze help me..! I have 8 directions the car can move.. like this _\|/_ /|\ pleeze help! email me at digital AT twlakes DOT net