Well, What i would do anyways, is on that block, i would create 2 separate MCs that camouflage on the left and right sides, each having thier own AS, And i would do something alogn the lines of for the right/leftg mc shall we...
onClipEvent(enterframe) {
if(char.hitTest(this)) {
char._x +/- (depending on side) = 1
}
}
That way once he hit the side MC, he wouldnt be able to go any further... thats just the way i would do it anyways.. hope it helped!
|