User Tag List

Results 1 to 5 of 5

Thread: How to make draggable object to slide with a bit inertia?

  1. #1
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export ModuleUnicode Add-on
    marat's Avatar
    Join Date
    Feb 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to make draggable object to slide with a bit inertia?

    You see - almost any android UI elements do slide with inertia. And how to do such function in Fusion?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,331
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    After you have a dragable object, you can add inertia by calculating the distance between the two last touch points and the angle between them, and then apply movent using trigonometry. It is a good practice to try and do this yourself, but there should be some example files and widgets laying around. I can make you an example later or tomorrow if you're still stuck. Remind me if i forget.

  3. #3
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export ModuleUnicode Add-on
    marat's Avatar
    Join Date
    Feb 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Theoretically i understand

    I need inertia only in X axis. I have an object (which acts like a mover for the group of others, that distributed over it) so when i move it by 1 slide touch it goes left and right. And so if i scrolled (swiped) it AND released touch - thats the time where inertia needed. And you said two points - and me still can't get whats the second? Just +10-20% depending on initial speed?


    Quote Originally Posted by Popcorn View Post
    After you have a dragable object, you can add inertia by calculating the distance between the two last touch points and the angle between them, and then apply movent using trigonometry. It is a good practice to try and do this yourself, but there should be some example files and widgets laying around. I can make you an example later or tomorrow if you're still stuck. Remind me if i forget.

  4. #4

  5. #5
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export ModuleUnicode Add-on
    marat's Avatar
    Join Date
    Feb 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx man, i downloaded the mfa from there, and scrolling there really works.
    But i can't get where it is - the mechanism actually. All commands are kind of static, and i though there will be maybe some easing or trigoometric functions used.
    I of course will do a more depth research in that example. But a bit stuck right now.
    x1.jpg

Similar Threads

  1. How do you make player slide??
    By TheVern in forum Fusion 2.5
    Replies: 1
    Last Post: 11th October 2016, 05:47 AM
  2. Replies: 10
    Last Post: 17th August 2016, 03:17 PM
  3. Multyple draggable objects..
    By qipqop in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 27th August 2011, 02:59 PM
  4. make screen slide
    By dray in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd September 2008, 12:07 AM
  5. Making MMF2 Draggable Apps?
    By GabSt in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th July 2008, 10:51 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
  •