home *** CD-ROM | disk | FTP | other *** search
- function moveLog(direction, speed)
- {
- if(direction eq "right")
- {
- if(this._x < 500)
- {
- setProperty(this, _X, _X + speed);
- }
- else
- {
- setProperty(this, _X, -150);
- }
- }
- else if(direction eq "left")
- {
- if(-150 < this._x)
- {
- setProperty(this, _X, _X - speed);
- }
- else
- {
- setProperty(this, _X, 500);
- }
- }
- checkHeroOnLog(direction,speed);
- }
-