AS.2 help...

Started by: zer0gravity | Replies: 3 | Views: 532

zer0gravity
2

Posts: 490
Joined: Oct 2009
Rep: 10

View Profile
Mar 1, 2010 5:14 AM #552077
Well... I'm making yet another game and yet another problem has prevailed...

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

View

Download .fla

how do I fix this?
Bonk
2

Posts: 2,778
Joined: Mar 2008
Rep: 10

View Profile
Mar 1, 2010 7:31 AM #552111
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

Posts: 155
Joined: Jul 2008
Rep: 10

View Profile
Mar 1, 2010 6:55 PM #552193
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 ^^
降世神通

Posts: 69
Joined: Nov 2009
Rep: 10

View Profile
Mar 2, 2010 10:53 AM #552421
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);
}
};