Positon a paddle to a spinner

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • This will make the paddle span the width of the frame (minusing from 640 will make it move right when you spin clockwise and vice versa):

    Please login to see this picture.

    This will constrain the paddle to within 65px from the edges:

    Please login to see this picture.


    So that's those 2 problems solved. However, you'll still have the problem of it abruptly jumping from one side to the other when the angle crosses over from 359 to 0 or vice versa. To solve that, I would go about it a slightly different way:


    Please login to see this picture.


    The key equation here is differenceAB = ((angleA - angleB + 540) mod 360) - 180 (courtesy of MuddyMole's Please login to see this link.). This always finds the shortest difference between two angles (So rotating the slider from 359 degrees to 0 degrees gives a reasonable +1 instead of a whopping -359), which we then apply to the paddle position.

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

    Edited 6 times, last by Volnaiskra (October 19, 2023 at 4:27 AM).

  • So that's those 2 problems solved. However, you'll still have the problem of it abruptly jumping from one side to the other when the angle crosses over from 359 to 0 or vice versa. To solve that, I would go about it a slightly different way:


    Please login to see this picture.


    The key equation here is differenceAB = ((angleA - angleB + 540) mod 360) - 180 (courtesy of MuddyMole's Please login to see this link.). This always finds the shortest difference between two angles (So rotating the slider from 359 degrees to 0 degrees gives a reasonable +1 instead of a whopping -359), which we then apply to the paddle position.


    Thank you for taking a look at this for me, This is the part that I was struggling with.

    I really do appreciate your help and your always so detailed (which really helps)

    It works perfect now!

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!