Groups | Blog | Home
all groups > flash (macromedia) > december 2004 >

flash (macromedia) : I am doing a looping moving pattern clip, what's the best method to prevent pause?



Jonzy
12/5/2004 11:20:40 PM
Ok, here's what I am trying to do. I don't know how to explain this with texts,
so you can get my sample animation
http://flashkit.com/board/attachment.php?s=e18d8ca5cb405120fe7a550579f90d37&post
id=3139853

I got a graphic pattern. The pattern is repeating itself by the top and
bottom. Lets says like this:

*-*
*-*
*-*



Now, I place the bottom pattern in the center of the document, so the top
would be in the outside. and on the next keyframe I simply move down the
pattern and match it with the first keyframe design.

The problem with the looping sequence is it create a pause between last
keyframe and first keyframe because of the redundancy created with the loop.

The only method I know is with the help of the onion skins, I simply move a
bit backward proportionnaly with the other tweening movements.

Simple yes, but not when I have to deal with several animations of this kind
in the same movie, different speed and angle, because it require me to preview
and test each animations to see if the trick work, costing me production time.

So I ask to the expert here if there's a much clever method to make this kind
of loop more efficient.


thanks
NSurveyor
12/6/2004 2:42:27 AM
You could insert a keyframe one frame before the end of your tween. Then drag
that frame over to where the last frame of the tween was. Here's a visual:

Start: A tween (From Frames 1 to 15)
|1 | | | |5 | | | | |10| | | | |15|
|O------------------------------->|O |
````````````````````````````````````````
Step 1: Insert a keyframe one frame before the end of tween (14)
|1 | | | |5 | | | | |10| | | | |15|
|O---------------------------->'O| O |
````````````````````````````````````````
Step 2: Drag that keyframe (14) over to the last keyframe of tween (15)
|1 | | | |5 | | | | |10| | | | |15|
|O-------------------------------> O |
````````````````````````````````````````
NSurveyor
12/6/2004 2:44:39 AM
Wow, the 'visual' doesn't look too good. Just thought up of another method. If,
this tween is inside it's own movieclip, you can add a gotoAndPlay(2); on the
last frame, so it will loop to the beginning but it won't have a pause.
Jonzy
12/6/2004 5:24:41 AM
Your first method was the best.

The second was not so good because in situations where the patterns move on
certain angle, you still see some jerky animation.

see the gotoandplay example
http://www.flashkit.com/board/attachment.php?s=dfc448edbe1da5ff16f72407091be19c&
postid=3139926
Jonzy
12/6/2004 5:32:10 AM
The first method works fine, but not 'editproof'.

I mean if I have to re-edit the lenght of the tween, it will definitly have an
impact on the animation.

Still better than my method and the gotoandplay method.
AddThis Social Bookmark Button