| home | about | time | appearance | space | other | tips & tricks |
Light Worms (II)This effect is similar to the previous but it is more randomized. We will only present the changes so be sure you have read "Light worms (I)". There are three different things in this version: First of all completely eliminate the Guide Layer to have a straight motion for the dot. Second, in the same Timeline, move the entire frames one position to the right. Now the first frame is blank. The last step is adding the next Action Script to the Clip that does the motion (the static Light Worm):
onClipEvent( enterFrame ) {
this._x += random(3);
this._y += random(3);
}
By changing randomly the horizontal and vertical position with a few pixels each time the Movie enters a new frame, combined with the global motion the light worms will move "almost" along a straight path. Why we moved everything one frame to the right? That breaks the continuity of the Clip in the Timeline so he can start each time from the center (if not he will keep going and will not be visible because we are altering its original position). You can change in many ways this Flash File to obtain a slightly different result but which can satisfy a totally different need. See our next example and you will understand what we mean. |
| Copyright © 2010 WebArticles.org. All rights reserved. Privacy Policy. |
| FlashRandomEffects.WebArticles.Org is not affiliated with Adobe Systems Incorporated, USA. Adobe Flash is a registered trademark of Adobe Systems, Inc in the United States of America and/or other countries. The purpose of this website is to provide information for mastering Adobe Flash and creating Flash effects. |