Forum Moderators: Wolfenshire Forum Coordinators: Anim8dtoon
Animation F.A.Q (Last Updated: 2024 Nov 13 3:03 pm)
Characters, motion graphics, props, particles... everything that moves!
Enjoy , create and share :)
Remember to check the FAQ for useful information and resources.
Animation learning and resources:
11 Second Club: Monthly character animation competition.
Animation Mentor: Online school. Learn from the animation masters.
Rigging 101: Maya rigs and rigging tutorials.
AnimWatch: Showcasting the best of independent animation.
FlashKit: The best place to learn Flash.
Armaverse: Stop-motion armatures for animation.
60+ great Character Animator's sites: Get inspired.
I believe that the problem is you're trying to handle all the counting at once. You only want to initialize i once, then count. If you put all that in one frame, each time the frame is played, i is initialized again. What you need is a frame that never gets played again to initialize i (say frame one, i=4;), frames of your animation (say frames 2-30) with a decrement on the first frame of the loop (frame 2, i--;) , and then a frame testing to see where to go to (say frame 31, if (i>0) { gotoAndPlay(2); } else {gotoAndPlay (32);}). I haven't tested this, so I'm not sure if that exact code should work, but I think that this would be the best waqy to handle it. If you're still having the problem that is. The one of the major things to remember in Flash is that all the code in a frame is executed at once.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I bet this is something real basic but I can't seem to find out why this won't work. A 40 frame amination with this action on frame 30 for(i=4;i>0;i--){ gotoAndPlay(1); } I basicly want it to repeat frames 1 to 30 a few times then run on to 40, I have tried putting goto actions after this set but it still doesn't do what I think it should... HELP Please!