|
Prev: Button effect
Next: Creating a .txt
From: Rurikar on 24 Jan 2008 05:05 My problem is along the lines of this. Say I have a circle sprite and a square sprite and I want these sprites to follow some code that would look like this: if sprite circle intersects sqaure then alert "yay" Now my problem is that circle, isn't really a circle in director. It's a square. The area of the sprite is what checks for the intersect not the sprite it's self. If your confused what I mean here is a a picture. http://xs123.xs.to/xs123/08044/spriteintercept_issue224.png Is there anyway to make it so it's the sprite that triggers intersects instead of the area of the sprite? Or a method like intersecting that would get me the same results?
From: Lukewig on 24 Jan 2008 07:15 Hi, Maybe this might help (movie with code for determining where circles, squares, quads and lines intersect): http://www.lingoworkshop.com/Testzone/Intersecting_Circles.php Cheers, Luke
From: geninazzi on 31 Jan 2008 06:52 :sun; Klick on the sprite, set the ink in the property Inspector to "matte"
|
Pages: 1 Prev: Button effect Next: Creating a .txt |