User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Two main conditions possible?

  1. #1
    Clicker 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)

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Two main conditions possible?

    Hey.

    I want to ask how many keys are currently down (pressed) and then, afterwards, how many are up (released), storing count in variable "pressed". I want to loop through all 255 keys. I tries this:

    every 1
    ---> start loop "keys"

    on loop "keys"
    if key <1+loop_index("keys")> is pressed
    ---> pressed+=1

    But the key is pressed condition does not work.

    What am I doing wrong?

    Thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I assume you're using the Control X object? You have to use "repeat while key is pressed." "Key is pressed" will only happen for one cycle when the key is pushed down, then it will go back to being false. Example attached.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to hi-jack the thread like this, but I just followed your signature link Mr. Walrus. Was the website put together in Fusion? What an awesome design

  4. #4
    Clicker 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)

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's actually really nice. But is it also possible with the Key Object?

  5. #5
    Clicker 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)

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, still if you press 5 keys at once, they will be recodgnized as a smaller number.. 3 or 1 key or no key pressed. The counter only works perfectly if you press them slowly one by one..

  6. #6
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This could be a hardware limitation. To save money, manufacturers often put multiple keys on the same circuit, so holding down more than a couple at the same time will only recognize 1 of them.

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

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would mechnical or gamer keyboards recognize these better?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ziplock View Post
    This could be a hardware limitation. To save money, manufacturers often put multiple keys on the same circuit, so holding down more than a couple at the same time will only recognize 1 of them.
    Yep, most keyboards have this limitation, even gaming keyboards. Generally gaming keyboards fare better though --- I've used keyboards where you couldn't even press two arrow keys and a letter, so it's definitely hardware related.


    Quote Originally Posted by Chrille View Post
    Sorry to hi-jack the thread like this, but I just followed your signature link Mr. Walrus. Was the website put together in Fusion? What an awesome design
    Thank you very much! It wasn't made in Fusion, it was made in raw HTML5/Javascript using Pixi.js as a renderer.

  9. #9
    Clicker 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)

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But wouldn't that mean, that keyloggers also can't clearly recognize all simultaneously pressed keys?

  10. #10
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah probably, though I'm not sure in what circumstances they would need to log that kind of thing!

    Pressing 5 keys at exactly the same time is unlikely to give meaningful input outside the context of a game!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [BUG 257.6] Main volume
    By Olivier in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 28th March 2013, 07:13 AM
  2. Error in main with Simulator
    By K1kk0z90 in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 5th October 2011, 10:28 AM
  3. Main Volume
    By weka in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th May 2009, 09:51 PM
  4. Interactivity with Sub App & main app?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd May 2009, 03:54 AM
  5. second installation after the main
    By HardCOLE in forum Install Creator and Patch Maker
    Replies: 5
    Last Post: 11th November 2008, 01:49 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
  •