home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / batman_cobble.swf / scripts / frame_26 / DoAction.as < prev   
Encoding:
Text File  |  2006-06-13  |  2.2 KB  |  84 lines

  1. _root.game.onEnterFrame = _global.cameraLogic2;
  2. _root.game.player.onEnterFrame = _global.playerLogic;
  3. _root.game.combo.onEnterFrame = _global.comboLogic;
  4. _root.game.halo.onEnterFrame = _global.followPlayer;
  5. _root.clock.onEnterFrame = _global.clockTimer;
  6. for(n in _root.game)
  7. {
  8.    if(n.substring(0,4) == "door")
  9.    {
  10.       _root.game[n].onEnterFrame = _global.doorOpen;
  11.       _root.game[n].doorOpen = false;
  12.    }
  13.    if(n.substring(0,7) == "item_br")
  14.    {
  15.       _root.game[n].onEnterFrame = _global.itemLogic;
  16.    }
  17.    if(n.substring(0,8) == "elevator")
  18.    {
  19.       _root.game[n].onEnterFrame = _global.elevatorLogic;
  20.       _root.game[n].dy = 0;
  21.       _root.game[n].limit = int(n.substring(12));
  22.    }
  23.    if(n.substring(0,5) == "barrel")
  24.    {
  25.       _root.game[n].onEnterFrame = _global.bgHit;
  26.    }
  27.    if(n.substring(0,5) == "eagle")
  28.    {
  29.       _root.game[n].onEnterFrame = _global.birdAI;
  30.       _root.game[n].state = "fly";
  31.       _root.game[n].health = 30;
  32.       _root.game[n].speed = 5;
  33.       _root.game[n].dir = -1;
  34.       _root.game[n].turnBack = true;
  35.       _root.game[n].flyCount = 0;
  36.       _root.game[n].attackCount = 0;
  37.    }
  38.    if(n.substring(0,4) == "lava")
  39.    {
  40.       _root.game[n].onEnterFrame = _global.lavaLogic;
  41.    }
  42. }
  43. stop();
  44. _root.gravity = 5;
  45. _root.globalGravity = 5;
  46. _root.FPS = 0;
  47. _root.fpsSet = false;
  48. _root.frameCount = 0;
  49. _root.gotoLast = "level2b";
  50. _root.camDelay = 0;
  51. _root.camHeight = 275;
  52. _root.camJump = 3;
  53. _root.camMin = 250;
  54. _root.camMax = 55252;
  55. _root.camZoom = 100;
  56. _root.camOffset = 0;
  57. _root.playerDx = 0;
  58. _root.playerDy = 3;
  59. _root.playerDir = 1;
  60. _root.playerSpeed = 19;
  61. _root.playerWalkSpeed = 6;
  62. _root.playerState = "fall";
  63. _root.playerJumping = true;
  64. _root.playerAttacking = false;
  65. _root.playerShooting = false;
  66. _root.playerSwinging = false;
  67. _root.playerLives = 3;
  68. _root.playerInvincible = false;
  69. _root.playerStrength = 10;
  70. _root.playerHeight = 75;
  71. _root.playerWidth = 50;
  72. if(_root.playerHealth == undefined || _root.playerHealth <= 0)
  73. {
  74.    _root.playerHealth = 100;
  75. }
  76. _root.weaponCount = 1000;
  77. _root.currentWeapon = "batarang";
  78. _root.comboMeter = false;
  79. _root.bgScroll = 6;
  80. _root.onPlatform = false;
  81. _root.key_z = false;
  82. _root.key_x = false;
  83. _root.key_c = false;
  84.