User Tag List

Results 1 to 5 of 5

Thread: click and drag

  1. #1
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    click and drag

    i remeber somone posted an example for clicking and dragging an object. does anone know where it is? if no one can find it then can somone tell me or give me an example of clicking and dragin an active object. thanks

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: click and drag

    Something like this...

    + User click on an object
    - Active Object - Set flag 0 on

    + Active Object - Flag 0 is on?
    - Active Object - Set position at mouse

    + X Repeat while left mouse is pressed (negated)
    - Active Object - Set flag 0 off

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: click and drag

    Another example (that I find easier) is:

    *Repeat While Left Mouse Button is Pressed
    +Mouse is over Active

    -Set X position of Active to Xmouse
    -Set Y position of active to Ymouse

    It is just one event with two actions. No flags required and it works great .

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: click and drag

    That's not a good solution if you ask me.. If the mouse is moved to fast the object will stop being dragged!

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Posts
    395
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: click and drag

    I usually use an Always command to ensure the object is ALWAYS dragged until I let go of the button. I think this is a more effective way.

    Turn the flag ON and say ALWAYS XMouse YMouse
    then turn the flag OFF and stop the always from running.

    Repeat Flag ON while Right Mouse Button is clicked
    Repeat Flag OFF while Right Mouse Button is NOT clicked.

    That should make it so no matter what the object will drag and drop.

    Now its just a matter of making the colisions work. Have fun!

Similar Threads

  1. Click To Drag Movement?
    By Rachel in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 22nd February 2012, 04:07 AM
  2. Click and drag issues
    By Lillmissthang in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 20th February 2010, 02:42 AM
  3. Need click and drag example
    By Decablo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 9th April 2009, 05:46 PM
  4. Help appreciated-Click and drag
    By Kensei in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd February 2009, 10:44 PM
  5. Click and drag movement
    By maestro1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 31st December 2008, 02:49 AM

Posting Permissions

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