User Tag List

Results 1 to 4 of 4

Thread: Control X grief - Perplexed by something?

  1. #1
    Clicker Fusion 2.5
    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)
    ACESpark's Avatar
    Join Date
    Oct 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Control X grief - Perplexed by something?

    Maybe i've got the wrong end of what this feature of control x is, but, if I haven't, could someone point me in the right direction?

    Basically, I want my game to have customisable controls inside the app, (classier :P), and control X is great for doing this. That's not the problem i'm having.

    I also want the app to have the option of Joystick controls, and I figured the easiest way to do this was to simulate the keypress.

    Therein lies the problem. Have I got "Key Down" incorrect?
    The event for movement is something like this:
    Code:
    Condition: (Control X) - Key value LEFTBUTTON is pressed.:
    Movement coding.
    And i've been trying to get the joystick to simulate the keystroke like this:
    Code:
    Condition: (Joystick) - Direction of joystick is 4 (left):
    (Control X) - Key Value LEFTBUTTON is held down.
    Have I done something wrong here? :confused:

    For the record, the "Condition: (Control - Key value LEFTBUTTON is pressed." is used ALOT during the coding. It's alot of hassle to copy every event and change that to the Joystick coding.

    And i've tried using hte OR function, but that doesn't seem to want to work either.

    EDIT: LEFTBUTTON is a global value thats loaded when the app is loaded from an ini file..

  2. #2
    No Products Registered

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

    Re: Control X grief - Perplexed by something?

    I would do it like this instead (just an idea, pseudo code):
    Where you customize the controls
    Any button pressed
    -Set player up/down/left/right (GetLastKeyPressed())

    And then use the condition:
    Player 1 moved top/bottom/left/right
    -Your action

    Or you could do like this:
    CtrlX Key LEFTBUTTON pressed
    OR
    Joystick dir is 4
    (I tried it and it works..)

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control X grief - Perplexed by something?

    Interpreting the direction controls through Control-X is something that stuck me for a while too, because they're interpreted in a different way depending on whether you're using a joystick (separate direction control) or keyboard (keys like the triggers).

    To get around this, I use four alterable values in a separate object like flags to indicate which directions are being pressed on the joystick (direction 0 is "right" only, direction 1 is "right" and "up" together, and so on), then I check against that object's alterable values (with an OR in the events that look at the directional controls) in place of checking for joystick directions directly.

  4. #4
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control X grief - Perplexed by something?

    very lateral thinking, nice... however it would nice if they just resolved the problem.

Similar Threads

  1. Air Control
    By Sp33d in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st July 2013, 01:24 AM
  2. Mouse control to act like keyboard control
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th July 2011, 06:30 AM
  3. Control X
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th July 2008, 12:22 PM
  4. Control X bug
    By danjo in forum File Archive
    Replies: 6
    Last Post: 7th July 2008, 10:04 AM
  5. Mouse Wheel Grief
    By kungsangun in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th April 2008, 07:34 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
  •