User Tag List

Results 1 to 8 of 8

Thread: On Release Mouse Command?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Location
    Eureka, CA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    On Release Mouse Command?

    I've looked all over, but I can't seem to find anything on this.

    I just want to make an on release command for an action. Like something won't occur until you've let the mouse button up.

    I was thinking about making a counter for this. I would make it equal to 1 at start. This would just delay the action, but that's not the exact effect I'd want, though it's closer to what I want.

    User Clicks
    -set counter to 0

    Counter equals 0.
    -Action occurs
    -set counter to 1

    That way I'd get the desired action with the minor delay so that it's not using pre click conditions and such.

    I know in flash you can use an on(Release) command for this sort of thing... is there anything like this in Multimedia Fusion Developer 2?

  2. #2
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    User clicks with left mouse button
    -Set counter to 1

    (Negate) Repeat while left mouse-key is pressed
    Counter = 1
    -Do your actions
    -Set counter to 2

    I've included the following example if you weren't able to follow.

    Click example.mfa

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You only need

    (Negate) Repeat while left mouse-key is pressed
    Only once while event loops
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  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)
    You can use a counter, but slightly different than your suggestion.

    * While user is pressing mouse button
    - Set counter to 1

    * [Negate] While user is pressing mouse button
    + Counter = 1
    - Set counter to 2

    * Counter is 2
    - Do action
    - Set counter to 0

    Edit: Stephen's suggestion works also, but then the action it will trigger at start of frame as well

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Location
    Eureka, CA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks everyone!

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stephen View Post
    You only need

    (Negate) Repeat while left mouse-key is pressed
    Only once while event loops
    This is what i would suggest, but be aware that the condition will trigger one time at start of frame even if you dont touch the mouse if you do this.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You could add an event to Stephens method - that says the game timer must be greater than say a tenth of a second before this happens. That should stop the initial trigger at frame start.

  8. #8
    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)
    Then it will trigger once it reaches that time instead
    Working as fast as I can on Fusion 3

Similar Threads

  1. Mouse release
    By TheOriginator in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th August 2011, 09:03 PM
  2. Mouse: On button release
    By the_raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th April 2011, 09:12 PM
  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 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
  5. 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
  •