Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Combo move with the same key.

Discussion in 'Animation' started by unit_power, Oct 5, 2013.

  1. unit_power

    unit_power

    Joined:
    Jun 11, 2013
    Posts:
    19
    Hello Unity,

    I am trying to figure out how to do a combo move with the same key.
    If i press the right arrow two times do something if i press right arrow three times do something else.

    Thank you in advance,
    Upower ;)
     
  2. unit_power

    unit_power

    Joined:
    Jun 11, 2013
    Posts:
    19
    I know someone has the answer for this :D
     
  3. FaceToggle

    FaceToggle

    Joined:
    Feb 23, 2013
    Posts:
    13
    On pressing your button you'll need to set up a time limit within which the next button needs to be pressed. A sort of state machine might make sense to structure what move is executable in what state.