Okay. Hello, i have a big problem in unity. im currently creating a horror game. but when i move my mouse to the left or right to look around. the WHOLE charactor moves. it says its rotating but it completely moves. i dont know why this is. i’ve watched tutorials on creating this exact game and its not happening to them. when i click the play button, i can move around with W A S D, but when i want to look to my left or right
the WHOLE Player moves a HUGE ammount for no reason. please help me
Please refer to this page: Using code tags properly
It will explain how to post code nicely on the forums.
Post your code in question, so people can look at what you have and offer suggestions.
i Dont understand… i just want to know how to stop my whole charactor from moving when i look around
You don’t understand what it is to post the code you’re working on?
No. im watching a tutorial on how to make a horror game in unity. i’ve followed all the steps installing stuff, everything is working. EXCEPT when i play the game and move my mouse my camera just messes up
Theres really not much code in it. all the scripts are basically built in
is there any way i can message you to get a responce quicker?
I’m not sure what to tell you… Without seeing the code, there’s no way I can know (or anyone else) what’s wrong specifically. Even if I made an educated guess, there would be no way to relay the information back to you so that it fits what you have in your project…
What code do you need to see? theres a lot of differant ones
Probably the code with the mouse looking around
how do i get that? go into assets and mouselook? then edit and send the code?
omfg i finally fixed it after all day
Ya, I guess so… Whatever mouse look or movement script is from the project that you think is relevant to this question.
Okay, you posted while I was responding… Glad you fixed it.
Ok. same problem again. whenever i click gameobject and add a terain. it just messes EVERYTHING up. i dont have a clue why
Sorry, I don’t think you’ll find it easy to get any help with “it messes everything up”… no one knows what that means.
Please communicate what you do, what happens, and (when relevant) post code.
Take your time to explain the issue properly, instead of being so vague.
If you arent messing with the code, the code is not the problem.
I’d guess you have a few things parented that shouldn’t be.
When an object is a child of another object, its position, rotation and scale are then relative to the parent.
So, if the parent moves, all the children move with it. Same with rotation and scale.
@ArrayCS - Just to echo what was already said, when you come to the forum to ask for help, you’re getting help from tons of people that are taking time away from their own projects to support other users. In the future please:
- Use a subject line that gives some detail about your issue
- Post relevant code. If you don’t know what code you are having issues with, than how is anyone else supposed to know?
- In the event that it’s something like @LMan_1 mentions, and related to your Inspector setup, a small screenshot of your current scene hierarchy can sometimes help.
Think about it this way. If I just posted and said “Hey, I’m trying to do this algebra problem but I’m not getting the answers I expect”, but then I never post the problem, how can someone help me? Or “I’m trying to make this food, but it’s not the color I think it should be” without posting a recipe or telling you what is going into the preparation… I think you see what I’m saying.
At any rate, glad you resolved your issue.
First Person Character issues. @Xepherys i got another problem now… i uploaded a screenshot of it