Hey Everyone,
I’m currently having a problem with an image that changes direction depending on the mouse movement
Heres the code i’m using
onMouseMove = function() {
if(_root._xmouse>Stage.width/2)
{
fishy1._xscale *= -1;
}
else if(_root._xmouse<Stage.width/2)
{
fishy1._xscale *= 1;
}
else
{
// do nothing
}
}
The image seems to move fine when on the left hand side, yet when I cross over it starts to wildy turn back and forth and usually ends up facing the wrong way. Any suggestions on how to stop this happening?
Natushi12