Ok,
So, no one commented so I did some experimenting and came up with this...
CODE
//initial variables and constants
theta = 0;
screenWidth = 550;
screenHeight = 400;
thetaChange = .05;
function moveBall() //basic motion of ball or bubble
{
ball._x = 100*Math.cos(6*theta) + ((screenWidth-100) / 2);
ball._y = 100*Math.sin(2*theta) + ((screenHeight-100) / 2);
}
ball.onEnterFrame = function()
{
moveBall();
if(theta == (8*Math.PI))
{theta = (0 + thetaChange)}
else
{theta+=thetaChange;}
}
This will be the floating bubbles basic paths while the mouse is NOT hovering over them.
MY QUESTION:
Could some one help me give the bubble a tail. This would just be a line from a fixed point to the bubbles _x and _y values at the other end.
As the bubble moves, one end of the tail would stay with it and the other (like I said) would stay at a fixed point.
Any help you could give would be awesome.
Thanks.