home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / sneak_attack.swf / scripts / DefineSprite_110 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  591 b   |  23 lines

  1. x = _parent._x + _X;
  2. y = _parent._y + _Y;
  3. width = _width / 2;
  4. if(x - width < _root.synj._x && _root.synj._x < x + width && y - 25 < _root.synj._y + 80 && _root.synj._y + 80 < y + 25 && (_root.synj.jumping != true && _root.ramp != true))
  5. {
  6.    if(synj != true)
  7.    {
  8.       synj = true;
  9.       _root.synj.platform_contact = _root.synj.platform_contact + 1;
  10.    }
  11.    _root.synj.air = false;
  12.    _root.synj._y = y - 80;
  13. }
  14. else if(synj == true)
  15. {
  16.    _root.synj.platform_contact--;
  17.    synj = false;
  18.    if(_root.synj.platform_contact == 0)
  19.    {
  20.       _root.synj.air = true;
  21.    }
  22. }
  23.