Hi All, I ran into a little issue with input working on the text adventure game. I had set up for the ManageState function to expect input for several number keys, as was explained in the tutorial but started seeing this error in the console when I ran the game:
It looked like it was not expecting that kind of input for some reason, so I followed what I saw on the error and set up some Alpha inputs in the input manager:
Without seeing your code it would be a guess, but I would imagine you are perhaps passing Alpha1 as a string, so you are trying to acess the names of the Input axes instead of a KeyCode.
Cooy/paste your script into a reply, apply the code formatting and let’s rake a look.
Hi Rob, thanks for your response. So I am passing Alpha1 as a string. The reason I’m doing so is that when I tried not casting it to a string it was giving me the red squiggly error line under that value getting passed to the Input.GetButtonDown function: