How to detect individual collision

Thomas McGrath III 3mcgrath at adelphia.net
Sun Feb 29 16:10:19 EST 2004


In the card script

On mouseEnter
-- check the name and  or type of the object to make sure it is a 
rectangle
-- if valid then do something here
end mouseEnter


On Feb 28, 2004, at 11:14 PM, Jan Sælid wrote:

> Hi there
>
> I'm trying to make a timeline-bar where you can add or delete 
> rectangles conatinig "whatever". The user is able to move a rectangle 
> left or right, but if it intersects with another rectangle, it will 
> stop....
>
> Because the user is able to delete and add new rectangles I have to 
> make some sort of function check if the moving rectangle is going to 
> collide with other rectangles to the left and right. (like the 
> timeline in Adobe Premiere) I know this is possible, but how do I do 
> it fast..... Checking every rectangle with repeat is to slow.....and 
> the only idea I have now is to make a list in a hidden field-table for 
> every new created rectangle......
>
> any ideas....?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541



More information about the use-livecode mailing list