home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / raven.swf / scripts / DefineSprite_166_bonus1 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-01-05  |  383 b   |  22 lines

  1. ys = 0.6 * r.rubspeed;
  2. _Y = -20;
  3. _X = 100 + random(400);
  4. onenterframe = function()
  5. {
  6.    _Y = _Y + ys;
  7.    ys += 0.6 * r.grav;
  8.    if(hittest(n.z))
  9.    {
  10.       r.score += 5 * r.point;
  11.       r.zbonus.start();
  12.       r.energy = r.energymax;
  13.       r.bar.barfr.play();
  14.       this.removeMovieClip();
  15.    }
  16.    if(_Y > 420)
  17.    {
  18.       this.removeMovieClip();
  19.    }
  20. };
  21. stop();
  22.