home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / redbeard.swf / scripts / DefineSprite_105 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-12  |  394 b   |  11 lines

  1. if(getProperty("_root.BackgroundMC", _X) + _X + _width > 0 and getProperty("_root.BackgroundMC", _X) + _X < 450 and getProperty("_root.BackgroundMC", _Y) + _Y + _height > 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.