In my game I was going to implement the possibility of pressing forward and space at the same time. The only problem is
if (Input.GetKey(KeyCode.W) && Input.GetKey(KeyCode.Space))
{
}
doesnt seem to work. If they are not together the keys work fine, but together it cant seem to work. Any ideas? Thanks!
Try using Input.GetAxis or Input.GetKeyDown instead (and set them up in the input manager). In case there’s no difference there’s a big chance that the problem is within your actual keyboard. Different keyboards handles sending each- and multiple key press differently.
You can keep tabs on those keys with some booleans (or array of them) and Input.GetKeyDown and Input.GetKeyUp. Or the Event class also can track these.