Skip to main content
Inspiring
May 27, 2008
Answered

creating turbulence

  • May 27, 2008
  • 3 replies
  • 474 views
hello --

is there a script or a source for scripts for creating a turbulenbce like effect for an mc?

is there something down and dirty?

anway, i want to achieve something like a rocket re-entering the atmosphere. i have the flames shooting out. i would like to show the vehicle shaking just a little bit.

thanks > mark
This topic has been closed for replies.
Correct answer clbeech
you should be able to achieve this with just a little random incrementing, although you will probably want to keep track of the original position and return to it on each second iteration, in this way you will maintain the main position of the clip. it would look something like this:

3 replies

clbeech
Inspiring
June 16, 2008
lol - that's ok. the code given above is designed for use with any MC that is on the stage. what you have pasted above has been changed - the onEnterFrame event is 'outside' the method - it should be within it - it won't work without being the way it is. you certainly can change the 'name' of the method to 'turboMov' but the rest of the code should remain the same. place it on the main timeline first frame then you can call it at any time, and 'point' to any clip. if the instance name of the clip you want to shake is 'shake_mc' then that's what you use, however without quotes. you can even call the method on more than one MC at a time, like:

turboMov(rocketA, 5000,10);
turboMov(rocketB, 2000, 10);
Inspiring
June 16, 2008
eek-a-mouse! got it...

i wish i worked in flash everyday like you guys. thanks alot...
clbeech
clbeechCorrect answer
Inspiring
May 28, 2008
you should be able to achieve this with just a little random incrementing, although you will probably want to keep track of the original position and return to it on each second iteration, in this way you will maintain the main position of the clip. it would look something like this:
Inspiring
June 2, 2008
many belated thanks!
Ned Murphy
Legend
May 27, 2008
Try Googling "AS2 shake a movieclip"... you should find a few tutorials/examples.