Problems with Dani's Karlson FPS Movement Controller
Asked Answered
B

2

0

There may be a solution for this already, but i personally can’t seem to find any…

So I used Dani’s Karlson tutorial for fps movement link:

i think I’ve done everything correctly, but for some reason, when i enter play mode, the controls [w,a,s,d], don’t work like their supposed to. for example, w doesn’t make you move forward.

also, the camera object is in the character’s head, but when i enter play mode, i don’t know if the camera itself moves to somewhere else, but i see into the game map, and everything, from a position where the camera wasn’t placed.

i’ll add a few images to explain, but i just really need help.

Broussard answered 18/5 at 10:21 Comment(0)
S
0

It’s probably a reference error withtin the hierachy. Make sure to asign the movement script to the “Player” object and then reference its children in the script from the Inspector Menu.
The only script your camera should have is the “MoveLook” one.

Also, i reccomend that when running into problems with “Invisible” objects such as Cameras, you drag the “Game” tab to the side of the “Scene” window, so you can know what’s happening there

Somnifacient answered 18/5 at 10:20 Comment(1)

yeah i fixed it was probably the same thing you say bcs when i kept resetting all of the setup after a few times it worked ty anyway

Broussard
J
0

I checked all of that but I still slip and slide around and the movement keys are inverted. Jumping doesn’'t work for me and I replaced dani’s “Jump” part of the movement script to Input.GetKeyDown(Key code.Space) and it still doesn’t work

Jumna answered 18/5 at 9:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.