Collision Objects
Author |
Message |
Namis
|
Posted: 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. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
AsianSensation
|
Posted: Sun Sep 14, 2003 10:12 pm Post subject: (No 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... |
|
|
|
|
|
AsianSensation
|
Posted: Sun Sep 14, 2003 10:14 pm Post subject: (No 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. |
|
|
|
|
|
|
|