User Tag List

Results 1 to 3 of 3

Thread: "Upon clicking"

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "Upon clicking"

    A potentially newbie question about the "Upon pressing <key>" condition:

    My understanding of this is that when a key is pressed and held down, this condition only fires once, and that the "Repeat while key is pressed" is for repeating actions while the key is pressed (duh <img src="/center/images/graemlins/smile.gif" alt="" /> ).

    The problem I'm having is that I have several events with these conditions that I'd like to have considered only once per press. Currently I have an display which shows which number is pressed, and events that look like this:

    If LED5 is not visible
    And LED4 is visible
    And LED3 is visible
    And LED2 is visible
    And LED1 is visible
    Upon pressing "1", Display LED5 and change its graphic to the "1" graphic.

    If LED4 is not visible
    And LED3 is visible
    And LED2 is visible
    And LED1 is visible
    Upon pressing "1", Display LED4 and change its graphic to the "1" graphic.

    If LED3 is not visible... etc.

    I have a similar set of events for mouse clicks on a keypad and these work, no repeats. But if you use the numbers of the keyboard, then touching the "1" key, for instance, gives you a stream of five "1"s in a couple of microseconds. <img src="/center/images/graemlins/smile.gif" alt="" />

    Am I missing something? Do I need to put in some sort of "Stop processing events after this one succeeds" (if such an event exists)?

    Thanks,
    KevinM

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: "Upon clicking"

    Works fine for me. Possible solutions:
    1. Try putting the "upon press" condition on the top
    2. Add "only one action when event loops"
    3. Look elsewhere in your code
    4. Post a .mfa file which demonstrates the problem
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

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

    Re: "Upon clicking"

    I believe that if you have more than one "Upon pressing 1" condition, it does the action once for each condition.

    To get around this, you could have:
    Upon pressing 1 - set flag on

    then compare to whether the flag is on in each of your conditions instead of the keypress, and if true set the flag to false.

Similar Threads

  1. Zone Clicking
    By JasonDarby in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 31st January 2011, 10:25 PM
  2. Problems with clicking.
    By fish20 in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 2nd November 2007, 07:40 PM
  3. clicking movement
    By grayhuskie53 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2007, 09:36 PM
  4. Clicking Objects
    By Merrie in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th October 2007, 01:19 AM
  5. [Bug] Right Clicking
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd October 2006, 05:23 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
  •