Code Below...
onClipEvent (enterFrame) {
if (_root.go == true) {
yspeed = yspeed+gravity;
for (x=1; x<precision; x++) {
spot_x = _x+radius*Math.sin(x*360/precision);
spot_y = _y-radius*Math.cos(x*360/precision);
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
yspeed = 0;
}
}
_y = _y+yspeed;
_x = _x+xspeed;
}
}

New Topic/Question
Reply




MultiQuote




|