User Tag List

Results 1 to 9 of 9

Thread: Enable/Disable Certain Keys

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enable/Disable Certain Keys

    I'm trying to make an isometric platformer engine and will use a lot of ladders and jumping, etc.

    I have the basic movements set up (not using Isometric Grid object btw...the movements do not use extensions).

    I have the following condition:
    -If <player> overlaps <ladder>
    --Change animation of <player> to <climbing>

    I have the movements slightly change as long as the player is "climbing". However, while climbing I only want the player to be able to use Up or Down on the keyboard to move, because if I press Left or Right, the character zooms in the respected direction really fast.

    Is there an object I can use that will allow me to disable/enable specific key presses when certain conditions are met?

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The Control X object allows you to disable keys, and I've included the files. Hope this helps!
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I forgot about that... There's probably a way to get around that, but I don't have time to work on it now.

  4. #4
    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)
    If you wedge a butter knife under the edge of the key and use an adjacent key or your finger or something as leverage, you can disable the key.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jacob View Post
    If you wedge a butter knife under the edge of the key and use an adjacent key or your finger or something as leverage, you can disable the key.
    LOL! You mean by physically removing the key? LOL!

    Anyway, there are several keyboard-related objects, pretty much all of which can be downloaded using ExtensionView. One of them is bound to be able to do what you want (without physically removing (or physically (or psychically (:P)) destroying) the key).

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Snail View Post
    To reiterate and avoid confusion:

    If Counter = 0, allow full control; if it's equal to 1, limit keys to left and right, etc.
    Do not use extensions for this purpose. Use switches like alterable values, counters, flags, arrays, animation directions, animation frames, pretty much anything that isn't an extension.
    Okay, now that I've read the post, I understand why that would be a bad idea. Yeah, use alterable values instead.

  7. #7
    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)
    To reiterate what Snail is saying, Do not disable the key. Disable the way your program checks for input. If you have On Right: Move Right, change that to On Right + When not on ladder, Move Right. You should not be disabling the player's keys.

  8. #8
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    **SOLVED**

    Okay I think I figured out a solution It seems to be working out alright. Thanks everyone for the prompt feedback ^^

  9. #9
    No Products Registered

    Join Date
    Mar 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you tell me the solution you used? i have the same problem..

Similar Threads

  1. Enable / Disable HWA in runtime
    By Bibin in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 17th December 2012, 01:11 PM
  2. enable/disable iads using the ios object
    By Chokito in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 18th October 2012, 10:06 AM
  3. Enable/disable layer wrapping during runtime?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th August 2012, 08:10 PM
  4. Can you enable/disable ASB
    By Sumo in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 1st September 2010, 09:02 PM
  5. Enable/Disable Example for Bernardo3D
    By Stephen in forum File Archive
    Replies: 0
    Last Post: 28th October 2009, 10:51 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
  •