User Tag List

Results 1 to 6 of 6

Thread: How can i make so you can't spam a button?

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can i make so you can't spam a button?


    Hi

    Playing around in MmF.

    When my character jumps does she make a sound and a animation.

    I got the standard
    """" Upon Pressing "Shift" - Play sample jump.wav / Animaton changed to jump """"

    I just want this to work ONCE per jump so i can't for example press shift again while she is jumping.

    Possible?

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

    Re: How can i make so you can't spam a button?

    Add a "Only once while event loops" to your event located in the Special --> Limit Conditions menu.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How can i make so you can't spam a button?

    Give your character a "Flag" which will be ON when he is in the air, OFF when he is on the ground. This way you can only "jump" when you are on the ground. Your code should look like this:


    Upon Pressing Shift
    &
    Character Flag 1 is OFF
    DO
    play jump animation
    set Flag 1 ON


    When Character Collides with Backdrop
    DO
    set Flag 1 OFF

  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: How can i make so you can't spam a button?

    Also, you can go into your application settings and disable multiple samples.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How can i make so you can't spam a button?

    when multiplay samples are disabled, the newer one will cut off the older one, so each time they press shift it would restart the sound

  6. #6
    No Products Registered

    Join Date
    May 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can i make so you can't spam a button?

    @ Pixelthief

    Your Flag Idea worked just fine \o/

    Character jumps and make the sound. If i press shift again will the sound not play again until she can jump again.

    Thanks

Similar Threads

  1. How to make custom button
    By UnicornMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th February 2017, 10:40 PM
  2. How do you make an invisible button?
    By UnicornMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th September 2013, 02:44 AM
  3. Button to make an action and then reset
    By Nellatermica in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 11th May 2013, 07:33 PM
  4. Make Button Open Link In Browser (Flash)
    By flyoffacliff in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 3rd April 2013, 10:21 PM
  5. Make custom button to Input Controller (Race Car)
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 25th October 2011, 08:31 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
  •