if (Key.isDown(Key.RIGHT)) {
this._x += 5;
gotoAndPlay("_root.man", 2);
}
when i let go of the button the legs move
can anybody help me?
if (Key.isDown(Key.RIGHT)) {
this._x += 5;
gotoAndPlay("_root.man", 2);
}
when i let go of the button the legs move
can anybody help me?
This is just a guess because I can’t see your file from here, but, if the man is on frame one not moving (just standing), maybe
if (Key.isDown(Key.RIGHT)) {
this._x += 5;
gotoAndPlay("_root.man", 2);
} else {
gotoAndStop("_root.man",1);
}
ok heres the file
please try to find the wrong bit
this is the game at the moment, dont steal it!!! ive had my games stolen before
You made the legs separate movieClips that move with tweens on layers ‘right leg’ and ‘left leg’. These movieClips are nested in the movieClip of the gunner. You need to give everything instance names before you can tell them what to do. For instance, start with your first frame (at first). Put names on the right leg and left leg like ‘rleg’ and ‘lleg’. Then put a name on your guy like ‘dude’. Now, if you want the legs to stop moving use actions like:
_root.dude.rleg.gotoAndStop(1);
_root.dude.lleg.gotoAndStop(1);
//since you don't have a stop() action on the legs at all
//you can then use this to start them going again:
_root.dude.rleg.play();
_root.dude.lleg.play();
PS - I won’t steal your game, don’t worry.
Im really confused… do you think you could edit my 1 and post it back?
:: Copyright KIRUPA 2024 //--