View Full Version : gotoAndStop for MC stops on first frame
Skribble
January 22nd, 2005, 06:58 AM
hey guys. Im in the process of making a little game and Ive run into a little trouble. Ive got it so that when you push a key, it goes to a frame inside the heros MC and stops on it, on each frame inside the MC is another MC with an animation inside it. Now its supposed to play whatever is on the frame, right?
Well the thing is, it stops on the first frame of the animation and doesnt play. Can anyone think of anything as to why this would happen?
Any help/experiences would be great.
Thanks everyone.
RyxiaN
January 22nd, 2005, 09:07 AM
onClipEvent(load){
stop();
_root.heroMC.stand.play();
}
maybE?
Skribble
January 22nd, 2005, 10:40 AM
no sorry. that didnt work = [
Rainman
January 22nd, 2005, 11:34 AM
what if you extend each frame inside the heros MC by one frame (using F5)? I've had this problem before and I think I've managed to solve it using this method. But I'm not sure (it was a few years ago).
JoMan
January 22nd, 2005, 12:06 PM
Perhaps you might have accidentally made the animation in a Graphic, and not a MovieClip? If it is a Graphic, then the animation will not play.
peace
Skribble
January 22nd, 2005, 12:37 PM
heh i figured it out. Turns out that Ive got an enterframe loop somewhere telling my hero to keep going back to the stand animation. So it is instantaniously switching between walking and standing, giving it the illusion of freezing.
Now i just have to wade through my 200 lines of code and look for it -_-
thanks anyway guys.
JoMan
January 22nd, 2005, 05:20 PM
Heh! No problem! At least you figured it out :D.
peace
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.