Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Collision Objects
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Namis




PostPosted: 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
Sponsor
sponsor
AsianSensation




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: