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

  1. _root.game.onEnterFrame = _global.cameraLogic4;
  2. _root.game.player.onEnterFrame = _global.playerLogic;
  3. _root.game.combo.onEnterFrame = _global.comboLogic;
  4. for(n in _root.game)
  5. {
  6.    if(n.substring(0,4) == "robo")
  7.    {
  8.       _root.game[n].onEnterFrame = _global.roboAI;
  9.       _root.game[n].speed = 5;
  10.       _root.game[n].dir = -1;
  11.       _root.game[n].state = "idle";
  12.       _root.game[n].xMax = 800;
  13.       _root.game[n].xMin = 300;
  14.       _root.game[n].health = 225;
  15.       _root.game[n].strength = 15;
  16.       _root.game[n].range = 0;
  17.       _root.game[n].enemyHeight = 200;
  18.       _root.game[n].enemyWidth = 240;
  19.       _root.game[n].attackCount = 0;
  20.       _root.game[n].fallCount = 0;
  21.       _root.game[n].roboFlying = false;
  22.    }
  23.    if(n.substring(0,7) == "item_br")
  24.    {
  25.       _root.game[n].onEnterFrame = _global.itemLogic;
  26.    }
  27.    if(n.substring(0,4) == "cage")
  28.    {
  29.       _root.game[n].onEnterFrame = _global.bgCage;
  30.    }
  31. }
  32. stop();
  33. _root.gravity = 5;
  34. _root.globalGravity = 5;
  35. _root.FPS = 0;
  36. _root.fpsSet = false;
  37. _root.frameCount = 0;
  38. _root.gotoLast = "level4b";
  39. _root.game._x = 125;
  40. _root.camDelay = 3;
  41. _root.camHeight = 550;
  42. _root.camJump = 3;
  43. _root.camMin = 180;
  44. _root.camMax = 550;
  45. _root.camZoom = 100;
  46. _root.camOffset = 0;
  47. _root.playerDx = 0;
  48. _root.playerDy = 3;
  49. _root.playerDir = 1;
  50. _root.playerSpeed = 19;
  51. _root.playerWalkSpeed = 6;
  52. _root.playerState = "fall";
  53. _root.playerJumping = true;
  54. _root.playerAttacking = false;
  55. _root.playerShooting = false;
  56. _root.playerSwinging = false;
  57. _root.playerLives = 3;
  58. _root.playerInvincible = false;
  59. _root.playerStrength = 10;
  60. _root.playerHeight = 75;
  61. _root.playerWidth = 50;
  62. if(_root.playerHealth == undefined || _root.playerHealth <= 0)
  63. {
  64.    _root.playerHealth = 100;
  65. }
  66. _root.weaponCount = 1000;
  67. _root.currentWeapon = "batarang";
  68. _root.comboMeter = false;
  69. _root.bgScroll = 6;
  70. _root.onPlatform = false;
  71. _root.key_z = false;
  72. _root.key_x = false;
  73. _root.key_c = false;
  74.