I created the main level scene of my game and it was working until I worked the title scene and the transition. I have a Camera2D node with a simple script:
extends Camera2D
@export var desCentrar := 650
@export var player : CharacterBody2D
func _process(delta):
position.x = player.position.x + desCentrar
print(position.x)
This are the camera settings:
Camera Settings
Any guide is really appreciated!!!
When printing the position, it shows the camera is moving, but in viewport it is not moving. I guess may be I changed some setting in the display project settings when I worked in the main title screen and the transition. I checked the project settings but couldn’t solve the problem.