This content has been marked as final. Show 5 replies
I'm providing this link on behalf of someone else who makes a regular effort to offer support in the forums, alias clbeech. The animation he provides includes a friction factor that may be of use to you.
Hi guys. Thanks for the replys. I tried to replace my code with
whiteball._x += whiteball.vx * .8; but this didnt seem to make any difference to the speed of the ball. it stayed at a contstant speed.
Any other solutions. Ive looked on other forums and it looks easy when using speed a variable. however im using x and y axis velocities and cant figure it out!
Right... I did say 'something like' :)
What you'll want to do is actually change the velocity by multiplying.
whiteball.vx *= .8;
whiteball._x += whiteball.vx;
Adobe Community Expert
Super that did the trick.
My next task is to make the cue movieclip rotate 360 degrees around the whiteball and then when a key (space) is pressed the whiteball travels along the angle the cue is facing....any ideas?
Heres my fla file so far....
Thanks for any ideas!