home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / Skachky.swf / scripts / frame_14 / DoAction.as
Encoding:
Text File  |  2004-07-11  |  901 b   |  47 lines

  1. i = 1;
  2. while(10 >= i)
  3. {
  4.    f_state[i] = "hidden";
  5.    f_pos[i] = i * 35 + random(10) - random(10);
  6.    notj2[i] = true;
  7.    notj3[i] = true;
  8.    notj4[i] = true;
  9.    horse_u[i] = random(3) / 10;
  10.    horse_v[i] = 0;
  11.    horse_t[i] = 0;
  12.    finish[i] = -999;
  13.    i++;
  14. }
  15. horse_a[2] = 0.8;
  16. horse_maxv[2] = 1.2;
  17. horse_a[3] = 0.7;
  18. horse_maxv[3] = 1.3;
  19. horse_a[4] = 0.6;
  20. horse_maxv[4] = 1.6;
  21. horse_a[1] = 1.2 - level / 10;
  22. horse_maxv[1] = 1.2 - level / 10;
  23. fence_factor = 14 - level * 0.66;
  24. whips_limit = 11 - level;
  25. x1 = 0;
  26. x2 = 100;
  27. y2 = 3;
  28. y1 = -1;
  29. c = y1;
  30. m = (y2 - y1) / (x2 - x1);
  31. max_v = 1;
  32. speed = 8;
  33. increment = 0.6;
  34. horse1.gotoandplay(1);
  35. horse2.gotoandplay(2);
  36. horse3.gotoandplay(3);
  37. horse4.gotoandplay(3);
  38. not_jumping = true;
  39. start_whip = false;
  40. whips_used = 0;
  41. whip_cycles = 4;
  42. whip_count = 0;
  43. whipping = false;
  44. whip_factor = 0;
  45. counter = 0;
  46. next_fence = 1;
  47.