home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / batman_cobble.swf / scripts / frame_28 / DoAction_2.as next >
Encoding:
Text File  |  2006-06-13  |  1.9 KB  |  64 lines

  1. _root.game.checkpoint_3a_end.onEnterFrame = function()
  2. {
  3.    if(this.hitTest(_root.game.player))
  4.    {
  5.       _root.gotoNext = "level3b";
  6.       _root.fadeout.play();
  7.       if(!played)
  8.       {
  9.          _root.ignition.start();
  10.          played = true;
  11.       }
  12.    }
  13. };
  14. _root.game.checkpoint_3a_01.onEnterFrame = function()
  15. {
  16.    if(this.hitTest(_root.game.player) && _root.levelTitle._currentframe == 100)
  17.    {
  18.       _root.overlay.gotoAndPlay("goRight");
  19.    }
  20. };
  21. _root.game.checkpoint_3a_11.onEnterFrame = function()
  22. {
  23.    if(this.hitTest(_root.game.player))
  24.    {
  25.       _root.overlay.gotoAndPlay("useShaft");
  26.    }
  27. };
  28. _root.game.checkpoint_3a_12.onEnterFrame = function()
  29. {
  30.    if(this.hitTest(_root.game.player) && _root.levelTitle._currentframe == 100)
  31.    {
  32.       _root.overlay.gotoAndPlay("goRight");
  33.    }
  34. };
  35. _root.game.checkpoint_3a_02.onEnterFrame = function()
  36. {
  37.    if(this.hitTest(_root.game.player) && !_root.playerJumping)
  38.    {
  39.       _root.game.onEnterFrame = _global.cameraLogic3;
  40.       _root.camHeight = -45;
  41.    }
  42. };
  43. _root.game.checkpoint_3a_03.onEnterFrame = function()
  44. {
  45.    if(this.hitTest(_root.game.player) && !_root.playerJumping)
  46.    {
  47.       _root.game.onEnterFrame = _global.cameraLogic2;
  48.       _root.camHeight = 275;
  49.    }
  50. };
  51. _root.game.checkpoint_3a_04.onEnterFrame = _root.game.checkpoint_3a_03.onEnterFrame;
  52. _root.game.checkpoint_3a_05.onEnterFrame = function()
  53. {
  54.    if(this.hitTest(_root.game.player) && !_root.playerJumping)
  55.    {
  56.       _root.game.onEnterFrame = _global.cameraLogic3;
  57.       _root.camHeight = 3750;
  58.    }
  59. };
  60. _root.game.checkpoint_3a_06.onEnterFrame = _root.game.checkpoint_3a_05.onEnterFrame;
  61. _root.game.checkpoint_3a_07.onEnterFrame = _root.game.checkpoint_3a_03.onEnterFrame;
  62. _root.game.checkpoint_3a_08.onEnterFrame = _root.game.checkpoint_3a_03.onEnterFrame;
  63. _root.game.checkpoint_3a_09.onEnterFrame = _root.game.checkpoint_3a_02.onEnterFrame;
  64.