home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / DeliBEEry.swf / scripts / DefineSprite_119 / frame_28 / DoAction.as
Encoding:
Text File  |  2006-06-06  |  540 b   |  29 lines

  1. stop();
  2. _root.vidaschau = _root.vidaschau + 1;
  3. switch(_root.vidaschau)
  4. {
  5.    case 1:
  6.       _root.barra.vida1._visible = false;
  7.       break;
  8.    case 2:
  9.       _root.barra.vida2._visible = false;
  10.       break;
  11.    case 3:
  12.       _root.barra.vida3._visible = false;
  13. }
  14. if(_root.vidaschau < _root.vidas)
  15. {
  16.    this.gotoAndStop(1);
  17.    this.avancex = 0;
  18.    this.avancey = 0;
  19.    this.gravedad = 0;
  20.    this.control = true;
  21.    this._x = 55;
  22.    this._y = 66;
  23. }
  24. else
  25. {
  26.    _root.barra._visible = false;
  27.    _root.gameover.play();
  28. }
  29.