home *** CD-ROM | disk | FTP | other *** search
- function mainMove(moveSpeed, moveSpeedY, x, y, rePotion)
- {
- if(rePotion == 1)
- {
- this._y = getY;
- }
- else if(rePotion == 2)
- {
- this._x = getX;
- }
- else if(rePotion == 3)
- {
- this._x = getX;
- this._y = getY;
- }
- else
- {
- this._x -= moveSpeed;
- this._y -= moveSpeedY;
- this._x = x;
- this._y = y;
- }
- }
- function getP()
- {
- getX = this._x;
- getY = this._y;
- }
-