Letter and Number Rain - Page 3
Posted by : webzo on Mar 12, 2008
_rotation += rotSpeed; Rotate left or right. speed += gravity; Increase the speed by the gravity.
if(_y > 410)
{
this.removeMovieClip();
}
If the Movie Clip is over the limit of the screen, remove it. } var i = 0;
Variable used just to make unique names and depths for new Movie Clips. setInterval(nLetter, 70); This function calls the function "nLetter" every 70 milliseconds.
Parameters for the setInterval: setInterval(function name, milliseconds, parameters); "parameters" is optional, it's the parameters for the function you are calling.
function nLetter()
{
duplicateMovieClip(letterMC, "letter" + i, 10 + i);
Duplicate the "letterMC" Movie Clip. i++ }
Increase "i" by 1.
That's all the tutorial for now. Hope this will help you in your learning, thanks!

no comment
Add comment