Nice 'bouncy' bezier ones...that would be the icing on the cake...
I beg of u
![Very Happy :D](./images/smilies/icon_biggrin.gif)
and when ur in cable mode then like each module has an ouput socket, and an input socket at the top, and all knobs have a input socket next to them...
Code: Select all
_root.onEnterFrame = function() {
_root.createEmptyMovieClip("line", 1);
_root.line.lineStyle(10, 0xFF3300, 100);
_root.line.moveTo(p1._x, p1._y);
_root.line.curveTo(pm._x, pm._y, p2._x, p2._y);
};
Code: Select all
onClipEvent(load){
targX = 0;
targY = 0;
vx = 0;
ax = 0;
vy = 0;
ay = 0;
d=0;
}
onClipEvent(enterFrame){
d = Math.sqrt(Math.pow(_parent.p1._x - _parent.p2._x,2)+Math.pow(_parent.p1._y - _parent.p2._y,2));
targX = (_parent.p1._x + _parent.p2._x)/2;
targY = (_parent.p1._y + _parent.p2._y)/2+d/2;
ax = (targX-_x)*0.3;
ay = (targY-_y)*0.3;
vy += ay;
vy *= 0.8;
vx += ax;
vx *= 0.8;
_x += vx;
_y += vy;
}