My ball turns just once and stops where it began after one circle.Meaning 360 degrees; what if I want it to stop at 275, or 160. Help, suggestions, will be appreciated. Thank you. I can make it turn as many times I want to, but the ball always end up at the origin of mouvement. Timer ??? And Randomize it ?
code. I am thinking of using frames to solve my problem, although it want be as elegant as something happening randomly. I am going to choose 7 situations ( frames ) each with a different currantAngle
and so on. Each click will take me to different frame.The user won't notice a thing hopefully.
newRotation = Math.random() * 360;
myTween = new Tween(myBall, "rotation", Strong.easeOut, myBall.rotation, newRotation, .5, true);
Giving me error messages. What did I do wrong? I copied, pasted the script and drew a ball and a button.
Scene 1, Layer 'as3', Frame 1, Line 7 1046: Type was not found or was not a compile-time constant: Tween.
Scene 1, Layer 'as3', Frame 1, Line 9 1180: Call to a possibly undefined method Tween.
Scene 1, Layer 'as3', Frame 1, Line 9 1120: Access of undefined property Strong.
Thank you for your help, but that was not what I was looking for. I am trying to make a roulette, but the ball stops always at the same place, as you can see below. I will do some fine tuning for the sound later.