User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: How to create a multitouch volume knob rathe than a slider?

  1. #1
    No Products Registered

    Join Date
    Oct 2015
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to create a multitouch volume knob rathe than a slider?

    I'm trying to figure out how to approach making a volume knob, like you'd have on an amp or guitar.

    So as the user drags left after clicking on it it would rotate counter clockwise, and if you clicked on it and dragged right it would turn clocwise, or adjusting the volume value in each case.

    I couldn't find any examples through searching, just wondered if this had already been done?


    Thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simple enough.
    Here you go.
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Oct 2015
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much, I'll check this out when I get back to my computer.

  4. #4
    No Products Registered

    Join Date
    Oct 2015
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This work great thanks.

    Just a couple of questions, how do I set this to shave limits? As in if it's a volume knob, from 0-10 and it starts at 5?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go.
    By altering the Knob objects Alterable Values, you can design your own Knob, seting its Visual Start Angle, Visual Angle Range, and the Maximum Value that the Range should represent.

    About the multi touch, i havent ported anything to tablet/ smart phone yet, so i dont know exactly.
    But i guess you just replace Mouse coords with Touch coords, should be easy.
    Attached files Attached files

  6. #6
    No Products Registered

    Join Date
    Oct 2015
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi thanks for this, it's great!
    My only thing is I want it to go clockwise from low to high and I can't quite figure out how to adjust your code to do this. Also, can it start at 50> So it can go from a min value of 0 to 100 put the knob starts half way between these values?

    Yes your right it's fairly straight forward to port it to multitouch thanks.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here.
    Just set the Knobs Value_, and the Knob will adjust itself to this value initially.
    ( i allready set it to 50 )
    Attached files Attached files

  8. #8
    No Products Registered

    Join Date
    Oct 2015
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello again, thanks for helping me out.
    Really sorry but I'm a little stuck.
    I opened your latest and what I'm trying to get is that
    7 O'clock is the minimum then the knob turns clockwise to a maximum at 5 O'clock

    I want to start half way so I get that the Knob value gives you this as a position subtracted from the maximum value.

    I try adjusting the angle start and angle range, I get the concept but I can't seem to get it to rotate from 7 till 5 without it going a bit odd and spinning twice, perhaps I'm putting in the worn figures for these Alterable Values?

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah yes, as i was comparing directly with the Objects built in Angle, there were some problems with Angles of 'negative values'.
    I redesigned it, now using an Alterable Value for Angle_, and you should now be able to input negative Angles as Start and Range.
    Attached files Attached files

  10. #10
    No Products Registered

    Join Date
    Oct 2015
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This works perfectly, thanks very much for taking the time to help!

    I was also wondering if this could also snap incrementally so say there were 10 actual rotational positions that it went to, so rather than smoothly rotating from 0-100 it went in steps of 10 if that makes sense?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Use volume slider as horizintal scroll bar?
    By steakor in forum Fusion 2.5
    Replies: 0
    Last Post: 6th November 2015, 08:13 AM
  2. [Example] Volume Slider for Android
    By Bipolar_Games in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 1st November 2015, 10:15 PM
  3. Replies: 2
    Last Post: 21st May 2014, 11:32 PM
  4. Master Volume, Channel Volume, Sound Volume
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 14
    Last Post: 18th December 2010, 12:11 PM
  5. Beta 4: Multitouch test / "Create at start" bug
    By UrbanMonk in forum iOS Export Module Version 2.0
    Replies: 11
    Last Post: 17th November 2010, 09:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •