Hi i was wondering if anyone has a neat piece of actionscript that give the illusion that something is floating?
It needs to move left and right and up and down but always stay in the same spot..... if you get me.
I found a nice pice that uses the follwoing code but it eventually the objects fly away...
var my_x:Number = 0;
var my_y:Number = 0;
my_x += 0.1;
my_y += 0.1;
this._x =this._x +Math.sin(my_x);
this._y =this._y +Math.cos(my_y);