BlindPilot
05-11-05, 05:10 AM
Ok, ive been trying to make a nice little flash game lately, basically because I want to learn more about flash.
Its caled Fly That Plane 2, FLy That Plane 1 being my 2nd year university coursework :D
However ive now moved on to flash MX 2004 and am having trouble with the plane controls.
The game works so that the player uses the mouse to move the plane from left to right on the screen.
THe code on the movieclip looks like this:
onClipEvent(mouseMove){
this._x=_xmouse;
}
However the plane doesnt stick to the mouse.. it kind of moves away from it, and pulls closer when the mouse is moved in the opposite direction.
Also sometimes the plane seens to jump from one side of the screen to the other instead of smoothly moving along.
An ideas of where im going wrong?
bp
Its caled Fly That Plane 2, FLy That Plane 1 being my 2nd year university coursework :D
However ive now moved on to flash MX 2004 and am having trouble with the plane controls.
The game works so that the player uses the mouse to move the plane from left to right on the screen.
THe code on the movieclip looks like this:
onClipEvent(mouseMove){
this._x=_xmouse;
}
However the plane doesnt stick to the mouse.. it kind of moves away from it, and pulls closer when the mouse is moved in the opposite direction.
Also sometimes the plane seens to jump from one side of the screen to the other instead of smoothly moving along.
An ideas of where im going wrong?
bp