PDA

View Full Version : AS.2 help...



zer0gravity
02-28-2010, 10:14 PM
Well... I'm making yet another game and yet another problem has prevailed...

After he walks, he crouches... how can I fix this?

View (http://www.truploader.com/view/401042)

Download .fla (http://www.truploader.com/view/944743)

how do I fix this?

Bonk
03-01-2010, 12:31 AM
Post the actual walking code brosef so we can have a look, I personally don't have flash installed but I doubt anyone else will bother to download it.

Tork
03-01-2010, 11:55 AM
Well, im really new to actionscript, since im just a beginner...
i'll just tell you something what you probably have already thought of.. but anyways,,
i think you must do something like this

gotoAndPlay(3)

once it stops with the action.

gotoAndStop(1)


i think i dind't really help you at all, but it was worth the try ^^

降世神通
03-02-2010, 03:53 AM
move AS2.0(only right and left to move):

Man.onEnterFrame = function() {
if (Key.isDown(Key.RIGHT)) {
_root.Man._x += 6;
_root.Man.gotoAndStop(1);
}
if (Key.isDown(Key.LEFT)) {
_root.Man._x -= 6;
_root.Man.gotoAndStop(2);
}
};