hie all i am a new to flash as well as to this forum also
this.onEnterFrame = function() {
//player._y = _ymouse;
player._x += (_xmouse-player._x)/5;
if (_xmouse>player._x+5) {
//trace("X MOuse "+_xmouse);
//hittest();
_root.player.gotoAndStop(2);//
} else if (_xmouse>=430 && _xmouse<=530) {
_root.player.gotoAndStop(3);
} else if (_xmouse>=530 && _xmouse<=630) {
_root.player.gotoAndStop(4);
} else if (_xmouse<player._x-5) {
//trace("X MOuse "+_xmouse);
_root.player.gotoAndStop(11);
} else if (_xmouse<=200 && _xmouse>=100) {
_root.player.gotoAndStop(12);
} else if (_xmouse<=100 && _xmouse>=0) {
_root.player.gotoAndStop(13);
} else if (_ymouse<350 ) {
_root.player.gotoAndStop(21);
}else if(_ymouse>400){
_root.player.gotoAndStop(23);
}else {
_root.player.gotoAndStop(1);
}
};
- this.onEnterFrame = function() {
- //player._y = _ymouse;
- player._x += (_xmouse-player._x)/5;
- if (_xmouse>player._x+5) {
- //trace("X MOuse "+_xmouse);
- //hittest();
- _root.player.gotoAndStop(2);//
- } else if (_xmouse>=430 && _xmouse<=530) {
- _root.player.gotoAndStop(3);
- } else if (_xmouse>=530 && _xmouse<=630) {
- _root.player.gotoAndStop(4);
- } else if (_xmouse<player._x-5) {
- //trace("X MOuse "+_xmouse);
- _root.player.gotoAndStop(11);
- } else if (_xmouse<=200 && _xmouse>=100) {
- _root.player.gotoAndStop(12);
- } else if (_xmouse<=100 && _xmouse>=0) {
- _root.player.gotoAndStop(13);
- } else if (_ymouse<350 ) {
- _root.player.gotoAndStop(21);
- }else if(_ymouse>400){
- _root.player.gotoAndStop(23);
- }else {
- _root.player.gotoAndStop(1);
- }
- };
here i am moving my player with the mouse but it is playing 2 aminations at the same time when the mouse is moved above 430 it is playing two animations
i wanted if the mouse is slightly moved right then it should play the first animation of the right side and if mouse is moved with some force it should play the second animation and if the mouse is moved with greater force it should play the third animation and the same for the left side and the top side how to this an suggestions plzz