home *** CD-ROM | disk | FTP | other *** search
- function resetStar()
- {
- randomSeed = Math.floor(Math.random() * 100 + 20);
- speed = randomSeed / 1 + 2;
- _xscale = 50 + randomSeed;
- _yscale = 50 + randomSeed;
- this.swapDepths(randomSeed);
- _X = Math.floor(Math.random() * 600);
- _Y = 400 + _height;
- colour.setTint(82,189,245,100 - randomSeed * 2);
- }
- var randomSeed;
- var speed;
- var colour = new Color(this);
- resetStar();
-