1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Combo Support

Discussion in 'Programming' started by firekid, Jul 9, 2011.

  1. firekid

    firekid New Member

    Joined:
    Jul 9, 2011
    Messages:
    2
    Likes Received:
    0
    I am working on a project for a friend, and he needs me to implement combo support.

    I understand that I will probably be using InputMatching and ProcessInputMatching in PlayerController and PlayerInput to accomplish this, but I am extremely new to this area of development and to this genre, How would I implement a simple combo (such as down, right, up)?
     
  2. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,912
    Likes Received:
    35
    Combos, and also dodging, is detected by monitoring activity and inactivity of directional input. Basically you save the detected input direction and compare it with the direction of the last tick. You store the input direction at the end of processing in a variable either in PlayerController or PlayerInput.
     
  3. firekid

    firekid New Member

    Joined:
    Jul 9, 2011
    Messages:
    2
    Likes Received:
    0
    So how then would I save input direction and where?

    Thanks!
     
  4. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,912
    Likes Received:
    35
    Get the UT2004 UScript source code (it's freely available) and have a look at the Engine.PlayerInput class.
     
  5. VendorX

    VendorX Member

    Joined:
    Aug 2, 2010
    Messages:
    219
    Likes Received:
    3
    Nope, combos imput is in xPlayer.PlayerTick...
     

Share This Page