[SOLVED] Problem with first person movement

So…I want to make a first person horror game, but i messed with something and now i can’t move someone help

Help me out Theres the link, Use it and help please

By the way I’m a beginner in all this stuff :frowning: I’m also kinda impatient and I hope this can get fixed today…

Hi @VRTX and welcome!

It looks like you need to make your camera entity a child of your player entity again. I’m not sure if that’s the only problem. You can also copy and paste the player entity from the example project below.

https://playcanvas.com/project/405842/overview/tutorial-fps-movement

[quote=“Albertos, post:2, topic:36242, full:true”]
Hi @VRTX and welcome!

It looks like you need to make your camera entity a child of your player entity again. I’m not sure if that’s the only problem. You can also copy and paste the player entity from the example project below.

https://playcanvas.com/project/405842/overview/tutorial-fps-movement
[Uh Can You give me the scrip line to replace?]

@Albertos for example like go through my code, find the problem, and tell me how to replace it?

I guess the camera entity need to be a child of the player entity. You need to do this in the hierarchy of the editor, so that has nothing to do with the code. You can use the example project to check the setup.

Your load.js script is incorrect, so I’m not sure what you try to achieve with that. You probably also need to re-add the firstPersonMovement.js script to your player entity (or parse the script with the parse button of the script component).

ok I’ll see if that works

1 Like