This content has been marked as final. Show 4 replies
You might be able to use deltaX (current position - previous position). I haven't thought it thru entirely, but it may be worth thinking thru...
For a clockwise direction, deltaX is positive while y is greater than some value, and negative when y is less that value (that y value being the half circle horizontally). I'm not sure if there'd be a glitch to deal with when you cross that border.
Another approach could be to center the slider circle at a 0,0 relative point, and measure the angle of the slider control relative to that center, and just make the object you are rotating have that angle.
Not exactly sure I can picture what you are doing but I took this from an old script
rlc5611, you are AWESOME!!!
That is exactly what I am looking for.
Thanks very much.
I was just looking at that script and I couldn't figure out why it worked. In my original file, my "slider" was initially pointing to the right. In what I gave you, I made the marker on top. Flash rotation begins at horizontal - not vertical so that marker dot is initially at -90 degrees. In that case, the script is much simpler and you don't need the initialization variables. In my original case, since my 0 degrees was truly horizontal, my conditional had to check for more possibilities. But to simplify what I gave you would be: