Monday, May 28, 2012

[Action Script] Making objects shake May,2012

Hi,

I need some help adding shake or jiggle to the objects I have displayed on stage.

Here is the code I need to work around:

Quote: var myRound:Circle;

for(var i:Number=0; i<200; i++)
{
myRound = new Circle();
addChild(myRound);

var randomValue:Number = Math.random()*1;

myRound.x = -100+Math.random()*500;
myRound.y = -100+Math.random()*400;

myRound.scaleX = myRound.scaleY = randomValue;
myRound.alpha = 1-randomValue;
}



Making objects shake

Related Post



0 comments: