home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / robot_warrior.swf / scripts / DefineSprite_52_enemy / frame_1 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  451 b   |  29 lines

  1. function mainMove(moveSpeed, moveSpeedY, x, y, rePotion)
  2. {
  3.    if(rePotion == 1)
  4.    {
  5.       this._y = getY;
  6.    }
  7.    else if(rePotion == 2)
  8.    {
  9.       this._x = getX;
  10.    }
  11.    else if(rePotion == 3)
  12.    {
  13.       this._x = getX;
  14.       this._y = getY;
  15.    }
  16.    else
  17.    {
  18.       this._x -= moveSpeed;
  19.       this._y -= moveSpeedY;
  20.       this._x = x;
  21.       this._y = y;
  22.    }
  23. }
  24. function getP()
  25. {
  26.    getX = this._x;
  27.    getY = this._y;
  28. }
  29.