This checks if two sprites are touching for example, if person drags one sprite to specified place you must make the sprite movable in the property inspector place the script in the frame script location in score drag it to cover all the frames in the sequence on exitframe me -- needs to be placed in all frames -- to test at each frame -- sound activates only when 2 sprites touch -- these are rectangles around sprites -- set variables to represent those rectangles r1 = sprite(1).rect r2 = sprite(2).rect -- intersect tests if 2 rectangles are touching -- if they touch then it activates a beep -- the function intersect(r1,r2) reports the size -- of the rectangle that includes both the sprites -- if they are not touching then there is no rectangle -- Director thus reports that the rectangle is rect(0,0,0,0) -- when finally intersect the rect won't be rect(0,0,0,0) -- if the result is anything but rect(0,0,0,0) then -- the sprites are touching and it beeps if intersect(r1, r2) <> rect(0,0,0,0) then beep end if end ==== --if you want to check if sprite 1 is inside of sprite 2 -- then substitute this check -- 'if union(r1, r2) =r2'