home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Esportes / VirtualCurling.swf / scripts / frame_81 / DoAction.as
Encoding:
Text File  |  2005-08-08  |  782 b   |  25 lines

  1. stoney -= vy1;
  2. stone._y = int(stoney + (330 - stone._y) / 30 * (330 - stone._y) / 30);
  3. sinx = curve_amplitude * Math.sin((stone_starty - stone._y) * 3.142 * 0.6 / 180);
  4. degrees = (- (stone._y - 317)) * 180 / 282;
  5. newsinx = curve_amplitude * Math.sin(degrees * 3.142 / 180);
  6. sinx = newsinx;
  7. normal = last + vx1 / 3;
  8. stone._x = normal + sinx * curve;
  9. last = normal;
  10. t += 0.041666666666666664;
  11. vy1 = vystart - friction1 * t;
  12. scale = 0.2 * stone._y + 4;
  13. stone._yscale = scale;
  14. stone._xscale = scale;
  15. if(checker1.hitTest(stone._x,stone._y,true) or checker2.hitTest(stone._x,stone._y,true))
  16. {
  17.    out_of_play = true;
  18.    vy1 = 0;
  19.    vx1 = 0;
  20.    stone._visible = false;
  21.    stone_status[stone_in_use] = "crossed";
  22.    stoneboard.display_stones();
  23.    stopAllSounds();
  24. }
  25.