User Tag List

Results 1 to 6 of 6

Thread: Monitor mouse clicks while moving object with mous

  1. #1
    No Products Registered

    Join Date
    Jan 2010
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Monitor mouse clicks while moving object with mous

    Hello,

    I am trying to move a bitmap with the mouse. This works fine. But when i try to monitor the left mouse button (and do something when it is clicked), this does not work.

    It seems that if I am moving a bitmap on the screen, I cannot monitor whether any of the mouse events (like clicks occur). Is this true? Has anyone found a workaround for this?

    -Roger

  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: Monitor mouse clicks while moving object with mous

    This is a quirk of TGF2 that gets a lot of people - when you use the mouse movement, the mouse click events aren't triggered because the mouse buttons are reassigned to the fire buttons for the player controlling the mouse.

    You can either check for "Player 1 presses Fire 1" for a left click instead, or use the event:

    -> Always
    + Set X position of object to XMouse
    + Set Y position of object to YMouse

    to make the object follow the mouse cursor without using the Mouse movement.

  3. #3
    No Products Registered

    Join Date
    Jan 2010
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Monitor mouse clicks while moving object with mous

    Dear DavidN,

    I like the first option best (otherwise I guess the cursor would be visible.)

    But I can't seem to figure out where to do this. When i right click on player 1 under events, i get the options:
    Joystick
    Compare to player's score
    Comnpare to players number of lives
    When number of lives reaches 0

    None of these seems to be right,

    Roger

  4. #4
    No Products Registered

    Join Date
    Jan 2010
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Monitor mouse clicks while moving object with mous

    Ok, I got it.

    Click on Joystick > Read Joystick State

    In the window, make sure that "Fire Button 1" (for left mouse) is selected.

    Left mouse click can then be used to trigger an event!

    Thanks,

    Roger

  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: Monitor mouse clicks while moving object with mous

    You're welcome And welcome to the forums!

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Monitor mouse clicks while moving object with mous

    Also remember that there is an even to hide the windows mouse pointer.
    Working as fast as I can on Fusion 3

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. Movement while using mouse clicks
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th April 2011, 05:59 PM
  3. Moving a mouse controled object in a maze
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th February 2010, 06:59 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
  5. Moving Object Along Path With Mouse
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th January 2007, 01: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
  •