Ho creato 2 mc il primo ho dato come nome di istanza mc1 il secondo mc2. Nel primo frame di dentro mc2 ho scritto questo
myWidth = getProperty ("", _width);
myHeight = getProperty ("", _height);
myX = getProperty ("", _x);
myY = getProperty ("", _y);
chX = getProperty ("_level0/mc1", _x);
chY = getProperty ("_level0/mc1", _y);
//questo xla collisione
if (Math.abs(chY-myY)<myHeight/2 and Math.abs(chX-myX)<myWidth/2) {
gotoAndStop(10);
} // end if
Pero la collisione non avviene come mai? cosa sbaglio?![]()
![]()