home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / frame_23 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  506 b   |  27 lines

  1. tellTarget("/damage")
  2. {
  3.    gotoAndStop(int(getProperty("/damage", _currentframe) + "30" * eval("/:var_damage")));
  4. }
  5. if("6" < eval("/:vel_x") - "20" * eval("/:slow_var"))
  6. {
  7.    set("/:vel_x",int(eval("/:vel_x") - "20" * eval("/:slow_var")));
  8.    tellTarget("_level0")
  9.    {
  10.       call("tan_table");
  11.    }
  12. }
  13. else
  14. {
  15.    set("/:vel_x","6");
  16.    tellTarget("_level0")
  17.    {
  18.       call("tan_table");
  19.    }
  20. }
  21. tellTarget("_level0/car")
  22. {
  23.    gotoAndStop("hit_big");
  24.    play();
  25. }
  26. set("/:acc","1");
  27.