I want to make a circle(:Sprite) move along a pre-drawn curve. Using the graphics library a drew a 350 degree curve and I want my scrubber to move just from 0 degrees all tha way to 350 degrees without leaving the path. I found a great class from senocular.com that does this, but the problem is that Im limited to the lenght of the curve that I could use, since for it to work correctly I have to constrain myself to a maximum of a 90 degree curve. I also found another class that moves the sprite along a circle, but the problem with that is that once I reach the complete cycle. the sprite goes back to position 0. I just want the sprite to go from 0 - 350 and back, I dont want it to jump from 350 - 0. Is there any class or way to just draw the curve and attach the circle to that curve?
Here are some pics:
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…