When I click right player is moving left and when i click left player is moving right. Please help fast.
Hi,
Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?
If so, check if the scale values in the Transform component of the Main Camera game object are negative. They must be positive. Otherwise, the rendered image in the game window will be flipped.
By the way, if you need fast help, especially at the weekend, please feel free to join our official Discord chat server.
See also:
- Forum User Guides : How to mark a topic as solved
The transform component values are positive.
When did the problem occur? In this lecture? Or did you have the same problem before? If it appeared in this lecture, please rewatch the video. Maybe there is a little difference between your game and Rick’s.
If you cannot spot any difference, please share more information on what you did and have in Unity.