if (this._y>208.8 & this._y<363.8)>
_root.groundlevel1._y = -30.0;
trace("stop");
}
else if (this._y>400.0 & this._y<450.0)>
_root.groundlevel1._y -= 10.0;
trace("down");
}
else if (this._y<120.0>75.0) {
_root.groundlevel1._y += 10.0;
trace("up");
}
else if (this._y>550.0){
_root.dead = true;
}
It's pretty good except for two problems: Predominantly, if the ground is in the process of scrolling, hitTests are disabled. So if the ground is moving up to keep up with the fox falling in a hole or something, and the ground hasnt finished scrolling when the fox lands, the fox will just fall right though the ground. hittests dont work when the mc is in motion.
Secondly, and not nearly as important but none the less, the above code tells the screen to scroll up or down ten respectively, but the default position is set. Thus is just reloads to its default position instead of scrolling pleasently, which makes it pretty choppy.
la!
No comments:
Post a Comment