User Tag List

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

Thread: Event upon Releasing a Key? Is this possible?

  1. #1
    No Products Registered

    Join Date
    Sep 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Event upon Releasing a Key? Is this possible?

    There is a command that allows an Event "Upon pressing a key". Is there a way to have a second Event execute when the key is then released? I am helping my 10-yr old son with this and he knows more than I do, so please keep it VERY SIMPLE.

    We basically want to have an object go up while the key is pressed then immediately fall once the key is released. Right now my son has figured out how to get the object up using a Motion Path and the press key command. We figured the easiest way to get it down, is to use an opposite motion path, but it has to execute when the key is released.

    Any alternative suggestions are welcome. Thanks.

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Event upon Releasing a Key? Is this possible?

    Add a new event that says
    Repeat while Key is pressed
    Only one action when event loops
    ---Use opposite motion path

    Then right click on the first condition, the repeat one. Click negate, and a red X should appear beside it. This means it will occur when you are not pressing the key.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Event upon Releasing a Key? Is this possible?

    I think the "Key Object" extension allows you to check for key states too

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Event upon Releasing a Key? Is this possible?

    Quote Originally Posted by bigredron
    I think the "Key Object" extension allows you to check for key states too
    So long as you use the window control object to limit it to when the window has focus.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Sep 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Event upon Releasing a Key? Is this possible?

    Jacob,
    We tried the "negate" feature and got the motion to work as we wanted.
    Thanks!

  6. #6
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)

    Join Date
    Dec 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jacob View Post
    Add a new event that says
    Repeat while Key is pressed
    Only one action when event loops
    ---Use opposite motion path

    Then right click on the first condition, the repeat one. Click negate, and a red X should appear beside it. This means it will occur when you are not pressing the key.
    Thanks for this Jacob.

    This was a massive help

  7. #7
    No Products Registered

    Join Date
    Jun 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need something to happen when it's released, but not when it wasn't pressed in the first place. I have it set to gradually increase the value of a counter while space is held down, but I need it to go back down and create a certain projectile one space is released. The problem is, I also need it to create a projectile when the counter is set to zero. However, if I do that, it will constantly create projectiles. I know Scratch has a block for this, so why doesn't MMF2?

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module

    Join Date
    Dec 2008
    Location
    Italy
    Posts
    404
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    This should work, give it a look. You use two variables, one to check if player has pressed/is pressing button, the other to detect charging value (and shoot projectile accordingly)
    Attached files Attached files

  9. #9
    No Products Registered

    Join Date
    Jun 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got an Unknown format error, try again.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleInstall Creator Pro
    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)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    928
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The Control X object has a condition to call an event upon release of a key.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Clarification on releasing binary data
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th December 2013, 09:56 AM
  2. releasing an unfinished app
    By TheCrimsonTaco in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 12th July 2012, 07:44 AM
  3. Releasing a game on iOS
    By DavidN in forum iOS Export Module Version 2.0
    Replies: 13
    Last Post: 27th February 2012, 10:01 PM
  4. Releasing my own games with Clickteam tools
    By Bijhan in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 3rd May 2010, 10:53 PM
  5. requirements for releasing programs with reg. mmf?
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st December 2009, 11:51 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
  •