User Tag List

Results 1 to 5 of 5

Thread: User has let go of a button?

  1. #1
    No Products Registered

    Join Date
    Jul 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    User has let go of a button?

    How can you tell if a player has let go of a button? Like say one animation was playing when the button was held down, and you want another animation to play once the user has let go of that button?

    I tried negating a button press, but that's not the same thing is it?

    EDIT: I'm referring to keyboard keys, not in-game buttons :P

  2. #2
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User has let go of a button?

    Try negating the action "Repeat while key is pressed", that should work Or you can use extension like Key Object, if you need to customize it more.

  3. #3
    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: User has let go of a button?

    Yes, the Key and Control-X objects have "Key up" type events, but it should be possible to do it with:

    X (Negated) Repeat while pressing key [the key]
    + Only one action when event loops

    Therefore... perform these actions only once when the user is not pressing the key in question.

  4. #4
    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: User has let go of a button?

    Repeat while key not pressed & Only one action on event loop

    That should work, just make sure to ignore them at the start of frame.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Jul 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User has let go of a button?

    Thanks so much guys, I appreciate the quick and helpful response

Similar Threads

  1. "User clicks with left button" doesn't work
    By Ben Laserlove in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd April 2017, 11:03 PM
  2. [Bug] User Clicks with left button
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 3rd September 2012, 04:48 AM
  3. Problem with user clicking mouse button
    By HyperspazzMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th June 2010, 06:14 PM
  4. user holding down mouse button on object
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 14
    Last Post: 7th May 2007, 11:04 AM

Posting Permissions

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