Program automatically displays "Space key pressed" on start up

my code looks the same as the instructors at the point in the lesson. but when i run it in unity it displays space key pressed before i can even have a chance of pressing the space key.

Hi,

Could you post your code so that we can see if there is anything amiss?


See also;

i figured it out. i had a semi colon at the end of the if statement and i wasnt supposed to. Thank you though!

1 Like

Great, glad you can move forward and well done for resolving it yourself :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms