[Suggestion] Rotary knob control plug in

  • Hi to all

    Just a plug-in suggestion that could be useful to many.

    Imagine a rotary knob like the ones on a guitar amp.

    Behavior will allow it to turn using mouse or touch. It may have the following options :

    • modulation range (1 to 100, -20 to 20)
    • rotating range (1 to 360?, -45 to 45?)
    • variable attached

    What do you think ? More suggestions to that idea ?

  • I guess it would be a neat thing to have, but couldn't you just make that yourself with a sprite and some variables? Still, I would not call this a bad idea.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • LMingy : Inded, that could be but I'm not good enough at programming. I you have an idea about how to do it, I'll be glad to hear about it.

    BTW, I'm sure that multiplying behaviors for basics taks like that would let more people use Construct 2, I mean people like me who have a very poor knowledge about programmation langages.

  • It would be something like this.

    1:

    Sprite variable (knob)= greater than 0 but less or equal to 360.

    Set angle to sprite.knob

    2:

    Sprite variable (set) = 1 & mousedown

    Set Sprite.knob to distance(mouse.X,mouse.Y,Sprite.X,Sprite.Y)

    (Devide this by an x amount if the result is to high)

    3:

    Mouse left click on sprite.

    Add 1 to sprite.set

    4:

    Then for resetting the sprite when unused.

    On left mouse button released.

    Set sprite.set to 0

    U have to test it of course but this is how i would handle it.

    Kind regards.

    Savvy001

  • Looks nice, Savvy, thanks.

    But a behavior would make the job even easier :)

  • Of course.

    Personaly i to would like to see a behaviour for this.

    Kind Regards.

    Savvy001

  • Um you do realize we have anglelerp(a,b,t) right?

  • Oh ? No, haven't spoted it yet.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)