User Tag List

Results 1 to 5 of 5

Thread: Need help with moving with mouse

  1. #1
    Clicker Fusion 2.5 (Steam)
    Zido's Avatar
    Join Date
    Oct 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Need help with moving with mouse

    Well I need help with figuring out how to move an object with the mouse, for example I wish to move a picture object showing a picture and I wish to be able to click anywhere on the image to move it without having the picture center position of the mouse. Any ideas how I can get this done?

    Thanks, Zido

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCFirefly 3D Module
    Tek's Avatar
    Join Date
    Jul 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If by picture object you mean an actual Picture Object as opposed to a regular Active Object, then I'm not sure how to do it. But here's one way to make a normal Active Object follow the mouse coordinates without snapping/centering its position to them via hot spot. This is the basics of it for one object.

    1. Make 2 Alterable values somewhere, either global or in an object. For this example I'll use 2 global values. Name them something like Xmov and Ymov.

    2. Create an event where you click on the object and it sets the values for Xmov and Ymov. This event will also turn a flag on in the object you click on.

    * User clicks with left button on Object
    + Repeat while left mouse-key is pressed
    Object : Set Flag 0 on
    Special : Set Xval to X( "Object" ) - XMouse
    Special : Set Yval to Y( "Object" ) - YMouse

    3. Create a second event to check if Flag 0 of Object is on, and if so, to set its position.

    * Object: Flag 0 is on
    Object : Set X position to XMouse + Xval
    Object : Set Y position to YMouse + Yval

    4. Create a third event that turns off Flag 0 of the Object if you are no longer clicking and dragging it.

    * NOT Repeat while left mouse-key is pressed
    + Object: Flag 0 is on
    Object : Set Flag 0 off

  3. #3
    Clicker Fusion 2.5 (Steam)
    Zido's Avatar
    Join Date
    Oct 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it to work, many thanks!

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Patrice's Avatar
    Join Date
    Sep 2010
    Posts
    565
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Drag and Drop native movement no ?

  5. #5
    Clicker Fusion 2.5 (Steam)
    Zido's Avatar
    Join Date
    Oct 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Didn't know there were actually an movement that would fix this easy, thanks!

Similar Threads

  1. Moving an object with the mouse
    By mag_news in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th May 2011, 11:52 PM
  2. set dir in mouse moving
    By melnet in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 16th October 2008, 06:20 AM
  3. ASB not twice clickable without moving mouse?
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st March 2008, 06:07 PM
  4. Help moving a object with the mouse
    By Rick in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 6th May 2007, 01:54 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
  •