I am making a 2d top down, and i want the camera to Fallow the player along and rotate with player imput, i found plenty of information on the first part but not on the second, any help is apreciated.
How do i change the camera Rotation in game
- Edited
ghidorahking with code.
camera2D
which seems to be what you are using, inherits from node2D
, so you can use rotate
to rotate the camera.
rotate(0.1) #rotation in radians
of course you have to disable ignore rotation
in inspector:
ghidorahking rotate with player imput
Can you elaborate on what result you're after? Are the controls rotating the character, and the camera follows, or are the controls directly rotating the camera?