home *** CD-ROM | disk | FTP | other *** search
/ Champak 35 / jogo-disk-35.iso / Games / red_beard.swf / scripts / DefineSprite_172 / frame_1 / DoAction.as
Text File  |  2007-02-27  |  375b  |  11 lines

  1. if(getProperty("_root.BackgroundMC", _X) + _X > 0 and getProperty("_root.BackgroundMC", _X) + _X < 450 and getProperty("_root.BackgroundMC", _Y) + _Y > 0 and getProperty("_root.BackgroundMC", _Y) + _Y < 300)
  2. {
  3.    if(eval("_root.codeMC:state") != "dead")
  4.    {
  5.       if(this.hittest(_root.playerMC))
  6.       {
  7.          set("_root.codeMC:enemyCol","on");
  8.       }
  9.    }
  10. }
  11.