User Tag List

Results 1 to 4 of 4

Thread: Box 2D Spinning Wheel (Wheel of Fortune)

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Box 2D Spinning Wheel (Wheel of Fortune)

    Is there maybe an example of a physically Spinning Wheel via Swipe? What I mean is:

    Touch the wheel on one position - Swipe up or Down (or anywhere you want to) - The wheel spins in the speed of your swipe?

    This should be possible with joints I guess, but at the moment I can┤t find a sollution.

    Thx!
    J

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can use the multi-touch object to detect the swipe action and apply either a positive or negative angle change based on the swipe. If the swipe is at X location greater than the center of the screen (horizontally) and the Y (after the swipe) is greater than Y at start of the swipe, you're spinning clockwise. More to come... i think i can help with an MFA example... coming soon.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ok, try this... I modified DaveC's handy Swipe scroll example to rotate the wheel rather than scroll the screen.

    This was just a quicky... i check to see if xmouse is left or right of center to determine direction. If you test on windows and move the mouse it will reverse wheel but this wouldn't happen on iphone unless you moved while touching screen. also this only detects swipe moving up/down or down/up (not left/right or right/left). easy to modify though.

    want it to spin longer? modify the deceleration on line 6 / 7 (its presently set at 0.5, so reduce the number for a longer spin.

    you might also change the max speed (currently 30) to a higher number.

    FortuneWheelSwipe.mfa

    I hope this helps and thanks to DaveC for the excellent base code he wrote!

  4. #4
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A!!! Tuna - like always: exactly what I was looking for. Very cool!
    Thanks also to DaveC!

Similar Threads

  1. Roullette Wheel suggestions
    By ronnier1 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 21st December 2008, 10:31 PM
  2. Mouse Wheel Grief
    By kungsangun in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th April 2008, 07:34 PM
  3. Mouse Wheel?
    By workshop2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th December 2007, 04:11 AM
  4. Spinning Wheel
    By Rick in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 4th December 2007, 12:12 AM
  5. Scroll wheel
    By TotallyTurton in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th September 2006, 03:37 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
  •