home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / FlashGauntlet.swf / scripts / DefineSprite_148 / frame_24 / DoAction.as < prev   
Encoding:
Text File  |  2001-07-14  |  948 b   |  21 lines

  1. if(this.hitTest(_root.bound1) || this.hitTest(_root.bound2) || this.hitTest(_root.bound3) || this.hitTest(_root.bound4))
  2. {
  3.    setProperty(_root.player, _X, _root.player._x - 5);
  4.    setProperty(_root.player, _Y, _root.player._y - 5);
  5. }
  6. if(this.hitTest(_root.wall1) || this.hitTest(_root.wall2) || this.hitTest(_root.wall3) || this.hitTest(_root.wall4))
  7. {
  8.    setProperty(_root.player, _X, _root.player._x - 5);
  9.    setProperty(_root.player, _Y, _root.player._y - 5);
  10. }
  11. if(this.hitTest(_root.wall5) || this.hitTest(_root.wall6) || this.hitTest(_root.wall7) || this.hitTest(_root.wall8))
  12. {
  13.    setProperty(_root.player, _X, _root.player._x - 5);
  14.    setProperty(_root.player, _Y, _root.player._y - 5);
  15. }
  16. if(this.hitTest(_root.door1) || this.hitTest(_root.door2) || this.hitTest(_root.door3) || this.hitTest(_root.door4))
  17. {
  18.    setProperty(_root.player, _X, _root.player._x - 5);
  19.    setProperty(_root.player, _Y, _root.player._y - 5);
  20. }
  21.