Animation

  1. Home
  2. Computing & Technology
  3. Animation

Flash Falling Snow with Random Functions and Movie Clips

By Adrien-Luc Sanders, About.com

1 of 10

There are many different ways of creating snowfall in Flash, some more difficult than others. We’re going to use Math.random() and another function of the Math object, the Math.sin function, to create snow that falls in random places with a natural back-and-forth drift, following the path of a trigonometric sine curve.

You can create your snow before or after you create the rest of your scene, but I’ve started of by setting up a simple backdrop of snow dunes against a dark gradient sky, on a 550wx400h pixel stage.

Explore Animation

About.com Special Features

Animation

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Falling Snow with Random Functions and Movie Clips

©2009 About.com, a part of The New York Times Company.

All rights reserved.