User Tag List

Results 1 to 10 of 10

Thread: Dragging stuff.

  1. #1
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Dragging stuff.

    Hi Folks.

    Does anyone have an example of how to drag stuff around the screen in an iOS App? I have a few ideas in my head on how to implement it but before I go doing a load of testing I decided to check and see if anyone already has an example on offer?
    KnightTrek Productions
    http://www.knighttrek.com

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Have you tried the Drag&Drop movement? It should work.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll give it a try, thanks.
    KnightTrek Productions
    http://www.knighttrek.com

  4. #4
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module

    Join Date
    May 2008
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be nice if there was an easy way to make things drag things around and have them carry on with deceleration.

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jul 2006
    Location
    Athens, GA
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where can I find the "Drag&Drop movement"?

    I have created a windows application using the drag object but would like to export the program as iOS App.

    Thank you.

  6. #6
    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
    2 Post(s)
    Tagged
    0 Thread(s)
    Select the object that you want to drag and drop, then on the "Movements" tab of the objects properties pane, choose drag and drop as the movement type.

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jul 2006
    Location
    Athens, GA
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! That works great and simplifies the events needed.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JosephFTaylor View Post
    It would be nice if there was an easy way to make things drag things around and have them carry on with deceleration.
    Ah, like momentum? Shouldn't be too difficult to do, just record how far it moves horizontally and vertically each frame and store them in values, then once the dragging stops, create your own inertia from that value and then decelerate it by subtracting from the value until it reaches zero.

  9. #9
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module

    Join Date
    May 2008
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DistantJ View Post
    Ah, like momentum? Shouldn't be too difficult to do, just record how far it moves horizontally and vertically each frame and store them in values, then once the dragging stops, create your own inertia from that value and then decelerate it by subtracting from the value until it reaches zero.
    I tried that but it only carried on in the direction that it is away from the start position, so if you let go of it while going towards the start position, it would carry on in the direction that the active is away from the start position.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hm, you're allowing negative values? You're not using Abs() or anything like that?

Similar Threads

  1. Zooming and dragging
    By JasonDarby in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 29th December 2011, 11:52 AM
  2. Dragging object
    By Bruto in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 26th May 2011, 03:20 AM
  3. Please help me with dragging. Thanks.
    By Stephen in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 15th August 2008, 01:56 AM
  4. dragging example
    By therickman in forum File Archive
    Replies: 11
    Last Post: 9th August 2007, 12:01 AM
  5. Window dragging Example
    By Code6 in forum File Archive
    Replies: 0
    Last Post: 22nd September 2006, 10:24 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
  •