home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / ZanyAttack.swf / scripts / DefineSprite_155 / frame_175 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  417 b   |  24 lines

  1. set("/:score",eval("/:score") + "2400");
  2. if(eval("/:score") < "0")
  3. {
  4.    set("/:score","0");
  5. }
  6. call("UpdateScoreString");
  7. if("1" >= eval("/:playerLives"))
  8. {
  9.    call("PlayerLose");
  10. }
  11. else
  12. {
  13.    set("/:playerLives",eval("/:playerLives") - "1");
  14.    tellTarget("/lives")
  15.    {
  16.       gotoAndStop(eval("/:playerLives"));
  17.    }
  18.    tellTarget("/")
  19.    {
  20.       gotoAndStop("EnemyLand");
  21.       play();
  22.    }
  23. }
  24.