Question
Advanced hitTest
I am trying to make a fun bullseye game for my friends, but I
can't seem to get it to tell me exactly which target I hit in the
bullseye target. In my bullseye, I have 60 polygons placed on the
bullseye. I want to determine which ONE I hit, not two, or three,
or four, etc.
This is what I have:
for(var i = 0; i <= 59; i++) {
if(circle.circle_hit.hitTest(bullseye['target_'+i])) {
trace(i); // I get 3 traces, I only want one
}
}
The circle_hit mc is 2x2, thanks in advance
This is what I have:
for(var i = 0; i <= 59; i++) {
if(circle.circle_hit.hitTest(bullseye['target_'+i])) {
trace(i); // I get 3 traces, I only want one
}
}
The circle_hit mc is 2x2, thanks in advance