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