home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / pearlharbour.swf / scripts / frame_111 / DoAction_2.as next >
Encoding:
Text File  |  2005-09-29  |  2.7 KB  |  63 lines

  1. startDrag("_root.sight",1);
  2. Mouse.hide();
  3. grenadeexp = new Sound();
  4. grenadeexp.attachSound("grenadeex");
  5. grenadeexp.setVolume(250);
  6. enginLow = new Sound();
  7. enginLow.attachSound("lowengin");
  8. enginLow.setVolume(50);
  9. enginLow.start();
  10. grenadeexp.start();
  11. _root.attachMovie("framen","gameframe",2000);
  12. _root.gameframe._x = 0;
  13. _root.gameframe._y = 0;
  14. _root.attachMovie("wave_all","waveGrid",1999);
  15. _root.waveGrid._x = -123;
  16. _root.waveGrid._y = 275;
  17. _root.attachMovie("wave_waterline","wave_waterline",1998);
  18. _root.wave_waterline._x = 0;
  19. _root.wave_waterline._y = 275;
  20. planedepth = 200;
  21. FooTotal = new Array();
  22. FooOnScreenAlive = new Array();
  23. FooOnScreenDead = new Array();
  24. FooTotal = [{name:"plane0",planeX:300,planeY:70,speed:4,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane1",planeX:200,planeY:50,speed:3.5,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane2",planeX:400,planeY:120,speed:3,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane3",planeX:450,planeY:100,speed:3,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane4",planeX:420,planeY:70,speed:3,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane5",planeX:600,planeY:70,speed:4.2,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane6",planeX:700,planeY:50,speed:3.5,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane7",planeX:800,planeY:120,speed:5,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane8",planeX:950,planeY:100,speed:4,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4},{name:"plane9",planeX:500,planeY:70,speed:3.3,elevation:0,fallspeed:0,tilt:0,rotation:0,health:4}];
  25. shot = new Array();
  26. shot = [{shootSpeedX:0,shootSpeedY:0,shootX:0,shootY:1110,timer:-1},{shootSpeedX:0,shootSpeedY:0,shootX:0,shootY:1110,timer:-1},{shootSpeedX:0,shootSpeedY:0,shootX:0,shootY:1110,timer:-1},{shootSpeedX:0,shootSpeedY:0,shootX:0,shootY:1110,timer:-1}];
  27. shootNr = 0;
  28. NrOfShots = 0;
  29. waveArray = new Array();
  30. waveArray = [{size:2},{size:2},{size:2},{size:2},{size:10}];
  31. waveLength = 123;
  32. newWaveValue = waveLength;
  33. waveTopValue = waveLength / 4 * 3;
  34. waveSize = waveArray[2].size;
  35. waveCurve = waveSize * 2.5;
  36. waveX = 0;
  37. w = 0;
  38. while(w < waveArray.length)
  39. {
  40.    wavechange = eval("_root.waveGrid.wave" + w);
  41.    wavechange._yscale = waveArray[w].size * 14;
  42.    w++;
  43. }
  44. w = 4;
  45. wavesPast = 2;
  46. hitNr = 0;
  47. watertouch = true;
  48. jump = false;
  49. grav = 0.2;
  50. wind = -0.2;
  51. levelplacement = -246;
  52. curentXspeed = 1;
  53. boatXspeed = 0;
  54. boatTopSpeed = 7;
  55. waterYline = 275;
  56. boatY = waveHeight + waterYline;
  57. boatX = waveLength * 2;
  58. AccSlope = 0;
  59. jumpHeight = 0;
  60. jumpRecord = 0;
  61. shootSpeed = 5;
  62. _root.boat._y = boatY;
  63.