User Tag List

Results 1 to 6 of 6

Thread: Dragging object

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dragging object

    So, I'm trying to adapt the dragging object code by Andos in iOS with multi-touch. In theory it should work, but perhaps I'm missing how touch active works? The object should follow the touch if touch0 is active and with touch active it doesn't follow.
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dragging object

    I think I've found a bug.. the file attached have a different behavior in iOS and windows with no apparent reason. Run in MMF2 and drag the object with mouse and see what happens. Running in iOS forces the object to be centered on touch and this doesn't happen on windows.
    Attached files Attached files

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Dragging object

    The bug seems to come from clicks only getting registered when the finger no longer touches the screen (a tap). This seems to be a bug and we will have it fixed.

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Dragging object

    It has been fixed.

    About the first example file:
    It would never work the way you coded it.
    The event "Touch 0 is active" would continuously reset the values stored in xRel and yRel. Those values should only be set when the object was first clicked on. If you remove the event it semi-works.

    The PC version of the multiple touch object seems to not be able to update the 'XTouch' and 'YTouch' expressions in the 'User clicks with left button on object' conditions. In that event it seems you can only rely on XMouse and YMouse.
    Note: This works fine in the iOS runtime though.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dragging object

    Yes, in fact I tried to adapt the first example before checking how it would work on iOS.. the second one is the original and it works fine apart from the issue of not updating the xrel, yrel.

    Thanks for fixing Andos, this will be used a lot.

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dragging object

    Confirmed, fixed on build beta 21. Thanks!

Similar Threads

  1. How to detect dragging left with multitouch object
    By kungsangun in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 20th June 2013, 09:26 PM
  2. Allow user to adjust object sizes by dragging
    By Kracker in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th December 2012, 12:11 PM
  3. Sub-Application Object Dragging
    By Cody in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th September 2009, 04:12 PM
  4. Phizix Object- Dragging bodies?
    By xhedgehogx in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 19th September 2008, 12:04 PM
  5. [Request] Window Dragging Object for MMF2
    By aidmm in forum Extension Development
    Replies: 8
    Last Post: 16th January 2007, 09:39 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
  •