home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / eggrun.swf / scripts / DefineSprite_394 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-28  |  492 b   |  20 lines

  1. this._x -= this.myspeed;
  2. if(this.newinstance != "false")
  3. {
  4.    this.rand1 = Math.random();
  5.    this.myspeed = this.rand1 / 4;
  6.    this._x = 320 * Math.random();
  7.    this._y = 240 * Math.random();
  8.    this._xscale = 100 * this.rand1;
  9.    this._yscale = 100 * this.rand1;
  10. }
  11. this.newinstance = "false";
  12. if(this._x < -2)
  13. {
  14.    this.myspeed = this.rand1 / 4;
  15.    this._x = 322;
  16.    this._y = 240 * Math.random();
  17.    this._xscale = 100 * this.rand1;
  18.    this._yscale = 100 * this.rand1;
  19. }
  20.