GORDON CLICK HERE

Monday, August 8, 2011

Step 8

To change the scale (size) of the butterflies as well as the rotation: This code will randomly select values between whatever values you select and will change the scale and rotation of them creating an interesting pattern:


clip.scaleX = clip.scaleY = (Math.random() * 0.75) + 0.25;


clip.rotation=(Math.random()*200)+5;

No comments:

Post a Comment