home *** CD-ROM | disk | FTP | other *** search
- speed = random(5) + 10;
- scale = random(2) + 3;
- _X = _root.Hero._x;
- _Y = _root.Hero._y;
- _X = _X + (random(11) - 5);
- _Y = _Y + (random(11) - 5);
- _xscale = 50;
- _yscale = _xscale;
- onEnterFrame = function()
- {
- if(!_root.dead)
- {
- x = Math.sin((_root.WallHold._rotation - 90) * 0.017453292519943295) * speed;
- y = Math.cos((_root.WallHold._rotation - 90) * 0.017453292519943295) * speed * -1;
- _X = _X + x;
- _Y = _Y + y;
- }
- _xscale = _xscale - scale;
- _yscale = _xscale;
- if(_xscale < 0)
- {
- this.removeMovieClip();
- }
- };
-