Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | furtree |
I don’t want the camera to follow the player from other axes, for example when the player is jumping I want the camera to stay in its position
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | furtree |
I don’t want the camera to follow the player from other axes, for example when the player is jumping I want the camera to stay in its position
Reply From: | kidscancode |
Put a script on the camera:
extends Camera
export (NodePath) var player # assign the player node here
func _process(delta):
camera.transform.origin.z = get_node(player).transform.origin.z