User Tag List

Results 1 to 8 of 8

Thread: Auto Mouse

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Auto Mouse

    Hi,
    I am attempting an application that moves your mouse from one position to another. But I can't actually do that :confused:
    What I am trying to do is move the mouse from A to B. Not like a teleport but when it moves smoothly as though you are controlling it.

    Source File

    Thanks

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Auto Mouse

    Hm. This has been discussed before in another context. I think the easiest way is to do something like

    Always:
    set xMouse = xMouse + (xTarget - xMouse) / factor
    set yMouse = yMouse + (yTarget - yMouse) / factor

    factor is roughly the number of frames it should take. Try 15 or so. Also make sure the calculation is done in floating point. You might have to add a +0.0 somewhere.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Auto Mouse

    Thanks, but how would I make it go back again?

  4. #4
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Auto Mouse

    Random - what exactly does the factor expression do?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Auto Mouse

    Nothing you have to change it to a number. So how do I make the application repeat this process (like in reverse)?

  6. #6
    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)

    Re: Auto Mouse

    The Mouse Object allows you to set the mouses X and Y position. Here's a way to do it, noting the code is under the Mouse Object.

    GROUP - Move from A to B

    Xmouse < X of B
    > Xmouse = Xmouse + 1

    Xmouse > X of B
    > Xmouse = Xmouse - 1

    Ymouse < Y of B
    > Ymouse = Ymouse + 1

    Ymouse > Y of B
    > Ymouse = Ymouse - 1

    GROUP - Move from B to A

    Xmouse < X of A
    > Xmouse = Xmouse + 1

    Xmouse > X of A
    > Xmouse = Xmouse - 1

    Ymouse < Y of A
    > Ymouse = Ymouse + 1

    Ymouse > Y of A
    > Ymouse = Ymouse - 1

    You just need to activate the group you need for the desired action.
    KnightTrek Productions
    http://www.knighttrek.com

  7. #7
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Auto Mouse

    may i ask what u are using auto mouse for?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Auto Mouse

    Quote Originally Posted by Zabooza
    may i ask what u are using auto mouse for?
    No, it's just for a project.

    Thanks Paul!

Similar Threads

  1. Mouse auto-hide
    By Game_Master in forum Widgets
    Replies: 2
    Last Post: 22nd January 2011, 01:03 PM
  2. Mouse Movement prevents mouse click event?
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd March 2008, 02:52 AM
  3. Mouse click events runs faster when mouse moves
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd February 2007, 02:54 PM
  4. Mouse click doesnt work when Mouse movement used
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st September 2006, 02: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
  •