Check out Amazon.com!

BlitzCoder Code Archives PageMain Codes Page
"perfect collisions!! (Best collision for stopping an object when it collides with another) *updated!!*", by grim_1_2_3
The reason I say this is the best collision code for making an object stop next to the object being collidied with, Is simply because it works regardless of how many pixels at a time you are moving the object across the screen, And it STILL detects even 1 pixel!!! Anywayz, You will need to replace the 2 images in the code with you're own to see how it works. Change the variable for 'dspeed' to however fast(number of pixels) you want the object to move across the screen when you use the keys to move it.

Note: You can now use floats for the dspeed also :)
Code
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.

Code software created by Krylar's Kreations