Detect individual Collisions
Jan Sælid
janselid at hotmail.com
Sun Feb 29 06:14:07 EST 2004
Hi there
I'm trying to make a timeline-bar where you can add or delete rectangles containing "whatever". The user should be able to move a rectangle left or right, but if it collides with another rectangle, it should 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....?
More information about the use-livecode
mailing list