by ladty » Thu Jul 29, 2010 12:40 pm
why couldn't you use animate()? It's done simply by animate(animTime); -> you just haave to know, where your animation starts and where it ends. If you want to run an animation which starts at frame 50, set animTime to 50 and in each frame do animTime++ (or +=5 if it's to slow etc.). And in the end of this animation, just stop incrementing animTime or jump to another animation (animTime=25). It's quite simle, just write few functions for it, store your keyframes in some array (int[] keyFrames={0, 25, 50, 100, 140};) and than call your function startAnim(ANIMATION_RUNNING) -> animTime=keyFrames[ANIMATION_RUNNING];
Hope it helped