User Tag List

Results 1 to 7 of 7

Thread: Mouse click w/mouse controlled objects??...

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mouse click w/mouse controlled objects??...

    Playing around with a simple bat & ball game, the bat is mouse controlled...

    It appears that once you mouse control an object, there are no "global" mouse events say like in GameMaker so I had to use the spacebar to start the ball motion instead of the mouse click that I wanted.

    Or do I have to specify the bat as static and perhaps "force" the bat to follow the mouse X position within the game loop (I'd prefer to keep it simple for now since this is a question I'm asking for my wife who is just learning MMF2)

    Is there a way to receive a mouse click (so I can start the ball motion that way) while an object is controlled by the mouse?

    -Will

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse click w/mouse controlled objects??...

    Yes, fire button1 (under the Player icon) is the same as Left mouse button as long as an object is set to mouse control. The mouse control deactivates the normal mousebutton actions.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse click w/mouse controlled objects??...

    Wow, that sounded great but we looked at the Player object (the mouse controlled one) and the Player 1 object (the Joystick looking object)

    The only object that had "Fire Button 1" was for the Joystick (Player 1) and clicking the Fire 1 button in the config dialog still didn't start the ball as hoped.

    This is using Multimedia Fusion 2?

    I'll continue looking but we didn't see any fire button 1 item under the mouse controlled object...

    -Will

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse click w/mouse controlled objects??...

    I suppose it is the same for mmf2 as for mmf1.

    The fire button1 under the joystick icon is actually the left mouse button, it's the same thing. But only when there are an object that use the mouse control, as in your application.

    So when you say: When user press fire button1, the action will be ran when you click the mouse.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse click w/mouse controlled objects??...

    Okay I believe you, but when I select the joystick object, and check the Fire Button #1 (note, I'm not sure what to do with the 8-position dial, it's set to "Up") and then run the app, clicking the mouse buttons still doesn't start the ball as does the spacebar...

    This is using the ChocoBreak tutorial and changing the spinning man to a mouse controlled object.

    Goodness, this should not be so hard, and why SHOULD one lose mouse msgs just because an object is controlled??

    Perhaps I'd like to use my mouse buttons (as I am now) for other things...

    -Will

    PS - Thanks for all your help btw, this is just a be confusing and frustrating, your answer seems simple enough but I'm not finding it to work as you're claming

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse click w/mouse controlled objects??...

    Ok, till someone have the answer (I don't have mmf2 yet), you can do this:

    Get rid of the mouse movement, set it to static instead.

    Then have this event:

    * Always:
    + Set xpos of object to Xmouse
    + Set ypos of object to Ymouse

    Now your object is mousecontrolled, and the normal mouseactions shall work.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse click w/mouse controlled objects??...

    Yes, that was my fallback plan but I didn't want my wife to have to learn that low level kinda control yet; trying to keep the mix simple (as it should be) for now...

    Turns out, your answer WAS CORRECT. What threw me off was that 8-position direction control.

    Clicking off the single arrow (which II guess is expecting that particular direction from the joystick) got the ball to start as you originally suggested.

    Boy the help file talks in circles about that option! But anyway, thanks for all your help, we're up and running as we'd like now!

    -Will

    PS - And I have games that use both the mouse and joystick so cross-circuiting the buttons like this will certainly cause problems if one wanted to implement the same kinda controls (mouse & joystick) - I hope Click Team makes some changes here for their next revision...

Similar Threads

  1. Mouse Controlled Objects
    By JimmyTHicks in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 11th May 2012, 10:11 PM
  2. Mouse Pointer & Mouse controlled obejct
    By danjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 28th April 2012, 12:17 AM
  3. 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
  4. Mouse click-controlled movement
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd January 2008, 02:26 AM
  5. 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

Posting Permissions

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