home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_235 / PlaceObject2_165_607 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-26  |  988 b   |  39 lines

  1. onClipEvent(enterFrame){
  2.    if(this._y <= 561)
  3.    {
  4.       this._y += 6;
  5.    }
  6.    else
  7.    {
  8.       _global.mojo -= 2;
  9.       this._x = random(26) * 10 + 30;
  10.       this._y = - random(500) - 500;
  11.    }
  12.    if(this.hitTest(_parent.drag) and _global.die == false)
  13.    {
  14.       _parent.drag.gotoAndPlay("die");
  15.       _parent.shak.gotoAndPlay(1);
  16.       this._x = random(26) * 10 + 30;
  17.       this._y = - random(500) - 500;
  18.       _parent.score -= 100;
  19.    }
  20.    if(this.hitTest(_parent.shot1))
  21.    {
  22.       _parent.shot1.gotoAndStop(1);
  23.       _global.kills += 1;
  24.       _parent.shak.gotoAndPlay(1);
  25.       _parent.attachMovie("t1_fader","fader1",100);
  26.       _parent.fader1._x = this._x;
  27.       _parent.fader1._y = this._y;
  28.       _parent.fader1._xscale = 50;
  29.       _parent.fader1._yscale = 50;
  30.       _parent.score += 100;
  31.       this._x = random(26) * 10 + 30;
  32.       this._y = - random(500) - 500;
  33.    }
  34.    if(_global.bosstime > 0)
  35.    {
  36.       this.gotoAndStop("exit");
  37.    }
  38. }
  39.