home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / bumper_craft.swf / scripts / frame_145 / DoAction.as < prev   
Encoding:
Text File  |  2007-03-20  |  608 b   |  33 lines

  1. fan.start(0,10000);
  2. lvlcurrent = 0;
  3. score = 0;
  4. health = 100;
  5. deadslimenum = 0;
  6. lvl = 1;
  7. lvlpoints = 2000;
  8. vol = 0;
  9. newVol = 0;
  10. bgmusic.start(0,1000);
  11. bgmusic.setVolume(70);
  12. _root.onEnterFrame = function()
  13. {
  14.    vol -= (vol - newVol) / 17;
  15.    fan.setVolume(vol);
  16.    trace(vol);
  17.    if(Key.isDown(38) || Key.isDown(40))
  18.    {
  19.       newVol = 80;
  20.    }
  21.    else
  22.    {
  23.       newVol = 0;
  24.    }
  25.    _root.player.ySpeed -= _root.lvlcurrent;
  26.    if(_root.ground._x < 20 && lvlpoints >= 1)
  27.    {
  28.       lvlpoints--;
  29.    }
  30.    currentlevel = lvl + "/30";
  31.    texthealth = "Health:" + health + "%";
  32. };
  33.