
-----------------------------------
Namis
Sun Sep 14, 2003 10:03 pm

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.

-----------------------------------
AsianSensation
Sun Sep 14, 2003 10:12 pm


-----------------------------------
to quote a very prominent spammer:

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
Sun Sep 14, 2003 10:14 pm


-----------------------------------
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.
