Hi all! I'm trying to give my character an "uppercut" attack and I want it to be assigned to SQUARE and UP.. My Code looks like: Code (csharp): public class Input { public const string HORIZONTAL = "Horizontal"; public const string VERTICAL = "Vertical"; public const string JUMP = "XBUTTON"; public const string PUNCH = "SQUARE"; // I WANT TO ADD SQUARE AND UP HERE public const string UPPERCUT = "L1"; } the PS4 controllers output looks like this SQUARE Square = joystick button 0 Axes: LeftStickX = X-Axis LeftStickY = Y-Axis (Inverted?) RightStickX = 3rd Axis RightStickY = 4th Axis (Inverted?) I assign the buttons inside the Unity Input Controller... But I have no idea how to make combos.. Do I have to code it or? Tricky question, but thanks for any help!
Up is generally the Y-AXIS = 1 so you can do something like this. Code (CSharp): if(LeftStickY >= 1 && PUNCH) { Uppercut(); } Try checking this out as well, hopefully it helps you out. http://wiki.unity3d.com/index.php?title=KeyCombo