I think you have too many accelerating components
all you really need is:
onClipEvent (enterFrame) {
acc = 0.05;
this._x = this._x + acc;
if (this._x>max_x) {
this._x = this.startx;
}
tweek the value of acc to get the right amount of acceleration.
|
Results 1 to 5 of 5
Thread: Math genius wanted!!Threaded View
|
Click Here to Expand Forum to Full Width |