User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21

Thread: how to test if no keys are being pressed help

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

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to test if no keys are being pressed help

    How do you test if no keys are being pressed?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Using the Control-X object, a negated "Repeat while any key pressed" condition will work.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Nope, it only checks the last pressed key. So if you press 2 keys and release the second it will give a false positive...

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Hey, guys your still haven't helped me out. Can anybody help me please?

  5. #5
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Pick a Key and Negate it. If the Key isn't pressed the condition should be true?

    [color:#FF0000]X[/color] Upon Pressing "spacebar"

    Do

    nnnnnn

    Plus tell more about what you want to do, if you can. There might be a work around.

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Sorry for not being clear about it. what I want it to do is... when I press "D" I move right, and have my animation for walking, and if I'm not pressing "D" the animation gets changed or restored to the stand animation. I'm using my own movement engine.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    If this is the case then can't you do what 00J suggested, but change the key?

  8. #8
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Only One Action When Event Loops
    +Repeat whilst D is pressed
    - Play animation "Walking"

    Only One Action When Event Loops
    +[negate] Repeat whilst D is pressed
    - Play animation "Stopped"

    I can't remember whether "Only One Action When Event Loops" is necessary though

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    Quote Originally Posted by Raylax
    I can't remember whether "Only One Action When Event Loops" is necessary though
    It is not, but it's better to include it.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to test if no keys are being pressed help

    I can't really see why it's better though. It's not always true that conditions eats less resources than actions.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. No key pressed.
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th December 2011, 12:54 AM
  2. never experienced this? What have i pressed?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 9th May 2009, 06:36 PM
  3. accelerator keys aka hot keys don't work
    By Gitaarheld in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 23rd February 2009, 09:05 AM
  4. List of all current keys being pressed
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th August 2008, 01:06 AM
  5. Detect if Alt key is pressed?
    By Joeyotrevor in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th May 2008, 10: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
  •