User Tag List

Results 1 to 6 of 6

Thread: Dragging objects with Mouse

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Location
    Earth
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dragging objects with Mouse

    I am making a sound board and I am having trouble with dragging objects. I want you to be able to drag little boxes with words in them to a line so you can play them, but I don't know how you would make it so that you are able to drag them. Does anyone know how to do this?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: aking a souDragging objects with mouse

    Set a flag/alterable value on the object when it's clicked on (using the "Repeat while mouse key is held" condition), and move it to the position of the mouse cursor or object when this flag is on. At the end of the event list, continually set the flag off so that when the mouse button isn't being held, the object no longer follows the mouse.

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Location
    Earth
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: aking a souDragging objects with mouse

    Alright I am a little confused so I have this "Repeat will left mouse key is pressed" but, What to I do with the flags and alternate values?

  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Location
    Earth
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: aking a souDragging objects with mouse

    What number flag is it and what number should i set alternate value A to?

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: aking a souDragging objects with mouse

    You don't need to use a specific flag or set a value to anything in particular - just something that you can recognize later. For example:

    + Mouse is over object
    + User clicks with left button
    -> Set flag 0 of object to ON

    + Flag 0 of object is on
    -> Set object's position to (MouseX, MouseY)

    X (Negated) Repeat while user is holding left button
    -> Set flag 0 of object to OFF

    I think that should do it.

  6. #6
    No Products Registered

    Join Date
    Dec 2006
    Location
    Earth
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: aking a souDragging objects with mouse

    Thanks a ton works perfectly!

Similar Threads

  1. Dragging active objects with mouse.
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th November 2010, 08:06 PM
  2. Mouse Dragging Image
    By Wra1thus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th May 2010, 05:22 AM
  3. Dragging playfield with mouse
    By Ran_TH in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 23rd June 2009, 10:54 AM
  4. Dragging a box with mouse?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st May 2007, 12:00 AM
  5. Dragging the box in the "mouse in zone" editor bug
    By Alonso in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th July 2006, 05:57 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
  •