At 3/7/09 04:16 AM, Yambanshee wrote:
simply
onClipEvent(enterFrame) {
if(_x<175){
_x += (_root.player._x-_x)/4
}
}
as for wall go off and learn how a shapeflag works, then ask me (if you really want, through pm)
Ok, I have tried that and it seems to work, however the camera no longer follows the character after it reaches this certain point. Ex. the character runs to the left and hits the camera hits the _x<175 then the character runs to the right, and the camera does not follow him.
Is there anything to fix that problem?
The code I have now looks a little different then that, but it does the exact same thing.
onClipEvent(enterFrame) {
if (_x<175) {
_x += 0;
} else {
_x += (_root.player._x-_x)/4;
}
}
Any answers?