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

  1. _root.game.onEnterFrame = _global.cameraLogic5;
  2. _root.game.player.onEnterFrame = _global.playerLogic;
  3. _root.game.combo.onEnterFrame = _global.comboLogic;
  4. _root.game.respawn.onEnterFrame = _global.respawn;
  5. _root.enemies = new Array();
  6. _root.eKills = 0;
  7. _root.respawned = 0;
  8. for(n in _root.game)
  9. {
  10.    if(n.substring(0,4) == "goon")
  11.    {
  12.       _root.enemies.push(_root.game[n]);
  13.       _root.game[n].onEnterFrame = _global.goonAI;
  14.       _root.game[n].state = "idle";
  15.       _root.game[n].health = 64;
  16.       _root.game[n].strength = 8;
  17.       _root.game[n].speed = 9;
  18.       _root.game[n].dir = -1;
  19.       _root.game[n].attackCount = 0;
  20.       _root.game[n].fallCount = 0;
  21.    }
  22.    if(n.substring(0,4) == "maid")
  23.    {
  24.       _root.enemies.push(_root.game[n]);
  25.       _root.game[n].onEnterFrame = _global.maidAI;
  26.       _root.game[n].state = "idle";
  27.       _root.game[n].whipped = true;
  28.       _root.game[n].health = 72;
  29.       _root.game[n].strength = 7;
  30.       _root.game[n].speed = 12;
  31.       _root.game[n].dir = -1;
  32.       _root.game[n].attackCount = 0;
  33.       _root.game[n].fallCount = 0;
  34.    }
  35.    if(n.substring(0,5) == "eagle")
  36.    {
  37.       _root.game[n].onEnterFrame = _global.birdAI;
  38.       _root.game[n].state = "fly";
  39.       _root.game[n].health = 20;
  40.       _root.game[n].speed = 5;
  41.       _root.game[n].dir = -1;
  42.       _root.game[n].turnBack = true;
  43.       _root.game[n].flyCount = 0;
  44.       _root.game[n].attackCount = 0;
  45.    }
  46.    if(n.substring(0,7) == "item_br")
  47.    {
  48.       _root.game[n].onEnterFrame = _global.itemLogic;
  49.    }
  50.    if(n.substring(0,6) == "health")
  51.    {
  52.       _root.game[n].onEnterFrame = _global.lifeLogic;
  53.    }
  54.    if(n.substring(0,5) == "light")
  55.    {
  56.       _root.game[n].onEnterFrame = _global.bgLight;
  57.    }
  58. }
  59. stop();
  60. _root.gravity = 5;
  61. _root.globalGravity = 5;
  62. _root.FPS = 0;
  63. _root.fpsSet = false;
  64. _root.frameCount = 0;
  65. _root.gotoLast = "level4a";
  66. _root.camDelay = 0;
  67. _root.camHeight = 600;
  68. _root.camJump = 3;
  69. _root.camMin = 150;
  70. _root.camMax = 1700;
  71. _root.camZoom = 100;
  72. _root.camOffset = 0;
  73. _root.playerDx = 0;
  74. _root.playerDy = 3;
  75. _root.playerDir = 1;
  76. _root.playerSpeed = 19;
  77. _root.playerWalkSpeed = 6;
  78. _root.playerState = "fall";
  79. _root.playerJumping = true;
  80. _root.playerAttacking = false;
  81. _root.playerShooting = false;
  82. _root.playerSwinging = false;
  83. _root.playerLives = 3;
  84. _root.playerInvincible = false;
  85. _root.playerStrength = 10;
  86. _root.playerHeight = 75;
  87. _root.playerWidth = 50;
  88. if(_root.playerHealth == undefined || _root.playerHealth <= 0)
  89. {
  90.    _root.playerHealth = 100;
  91. }
  92. _root.weaponCount = 1000;
  93. _root.currentWeapon = "batarang";
  94. _root.comboMeter = false;
  95. _root.bgScroll = 6;
  96. _root.onPlatform = false;
  97. _root.key_z = false;
  98. _root.key_x = false;
  99. _root.key_c = false;
  100.