2 Replies Latest reply on Oct 24, 2007 6:15 AM by DIY_Lobotomy

    Simulated "rumbling"/shaking effect?

    DIY_Lobotomy Level 1
      Hello. I have a MC that I'd like to put on the stage and have it appear to be shaking or rumbling, sort of...

      I guess the concept of the actionscript would be that the MC jumps just a randomly selected small pixel amount (maybe between 1 and 5 or so), and it could also randomly be jumping up, down, left, or right. In addition, it must always "jump" based on it's center (so that way it won't actually "move", it'll just appear to be "rumbling" based on where i place it on the stage). I figure that if it's not based around a center, it could (theoretically) end up across the page somewhere...

      So, yeah - I guess maybe it would have to reset itself back to its original position after each new "shake"???

      I'm not even sure how to go about this. I hope I was clear as to what I'm looking to do. Can anyone provide me with any code/ideas/tutorials on how to get started with this? Thanks!!!