Hi guys!
On my animation there are electrons that I have to keep vibrating around itself all the time. How can I do this? Is there an option to keep a certain object vibrating all the time, or should I do like a million tweens?
Thx
Fire
If you put ‘an electron’ in a movieclip without a stop()-action, you could make the electron vibrating once (simple tween). Just place the movieclip on your stage as many times as you want, you’ll see it repeats all the time.
does this help any?
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21040
NOTE: If so, that can easily be modified to constantly shake like this…
[AS]// prototype
MovieClip.prototype.shake = function® {
this.x = this._x;
this.y = this._y;
this.onEnterFrame = function() {
this._x = this.x-(r/2)+Math.random()*r;
this._y = this.y-(r/2)+Math.random()*r;
};
};
// usage
myMovieClip.shake(20);[/AS]
if you look at my footer the red text is constantly vibrating and it’s just 3 tweens repeated over and over. Of course I could have randomized it, but I’m lazy.
What i usually do is work with a non vibrating image and then at the end, when i finished my work I edit the image (turn it into a movie clip) with some movement…