PDA

View Full Version : Making ball follow a line



buddylee
January 14th, 2003, 05:09 PM
Ok, I have a line that is 800 pixels long. The line is a gradual curve, that gets kinda steep at the end. I want this ball to go along the line. How do I make the ball move to the right, and stay on top of the line. All I have now is...


onClipEvent(enterFrame){
this._x +=35;
}


Now I need to add something to make it follow the line. The instance name of the line is.... "line" without the quotes of course. Ok, go to work guys.
Thanks

eyezberg
January 14th, 2003, 06:12 PM
do you have to script this?
just use a tween and the line on a guide layer..

buddylee
January 14th, 2003, 07:21 PM
I already have one tween going on here, and I didnt wanna have 2. I read earlier that multiple tweens can slow down the animation. I will try to tween it though and see how it works. Can you explain what a guide layer is though?
Thanks