home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ballistic_biscuit.swf / scripts / DefineSprite_59 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  571 b   |  38 lines

  1. angle = int((getProperty("/player", _X) - "160") / "3");
  2. setProperty("/rope", _rotation, angle - (angle + angle));
  3. if(angle < "10")
  4. {
  5.    tellTarget("/player/tube")
  6.    {
  7.       gotoAndStop(1);
  8.    }
  9. }
  10. if("10" < angle)
  11. {
  12.    tellTarget("/player/tube")
  13.    {
  14.       gotoAndStop(4);
  15.    }
  16. }
  17. if("20" < angle)
  18. {
  19.    tellTarget("/player/tube")
  20.    {
  21.       gotoAndStop(5);
  22.    }
  23. }
  24. if(angle < - "10")
  25. {
  26.    tellTarget("/player/tube")
  27.    {
  28.       gotoAndStop(2);
  29.    }
  30. }
  31. if(angle < - "20")
  32. {
  33.    tellTarget("/player/tube")
  34.    {
  35.       gotoAndStop(3);
  36.    }
  37. }
  38.