home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Kung_Fu.swf / scripts / DefineSprite_316_baddie3 / frame_1 / DoAction_2.as next >
Encoding:
Text File  |  2007-09-27  |  235 b   |  16 lines

  1. if(_root.guy.hitTest(this))
  2. {
  3.    gotoAndPlay(3);
  4. }
  5. else if(_root.killallenemies == "on")
  6. {
  7.    gotoAndStop(45);
  8. }
  9. else if(_root.pause == "on")
  10. {
  11.    f = [46,47];
  12.    r = random(2);
  13.    frame = f[r];
  14.    gotoAndStop(frame);
  15. }
  16.