Posted: Sun May 02, 2004 12:53 pm Post subject: (No subject)
Collision? what do u mean?
like how to tell if something's hit another something?
then u need int variables for the x and y coordinates of your something, to compare with the x and y coordinates of another something, then compare them to make sure the somethings do hit something.
Posted: Sun May 02, 2004 1:20 pm Post subject: (No subject)
Posted: Sun May 02, 2004 3:55 pm Post subject: (No subject)
'course, if you mean collisions between two objects, that's a little differant. You need to detect the collission (see above replies) and then you gotta decide what to do. In the end, most people make the two colliding objects stop where they collided or bounce right back for a while. If you want anything more complex, you're gonna need to know some gr 12 physics; Kinemetics, Dynamics and Collisions...