Computer Science Canada Collision Objects |
Author: | Namis [ Sun Sep 14, 2003 10:03 pm ] |
Post subject: | Collision Objects |
I was wondering if anyone knew how to trace an object ( custom made picture) and to make it into a collision object? Not just a square or circle or anything, but the actual picture traced. |
Author: | AsianSensation [ Sun Sep 14, 2003 10:12 pm ] |
Post subject: | |
to quote a very prominent spammer: Quote: whatdotcolor!!!!
you could use whatdotcolor to check the color of each pixel, and compare them with the border color, but this will be very very slow... |
Author: | AsianSensation [ Sun Sep 14, 2003 10:14 pm ] |
Post subject: | |
actually, I was being stupid... you could have an array of x and y, for each dot of the border of the object, and check the x and y position of each dot against the border, that would be much quicker. |