Problems with directional movement :c

Godot 4

Hi, i am program beginner in gdscript. I have a problem making the movement of my character. I ve tried many times but its still moving in diferente directions than the camera. Pls help

Make sure to paste code instead of screenshots. Though seeing the scene tree is nice, I’m betting you are rotate_y-ing the $Head node, but your direction variable is getting the transform of the Player. You could either get the head’s transform.basis or use self.rotate_y instead of head.rotate_y.

1 Like

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