my camera is not moving

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By akaguriookami

I’m brazilian so some variables are in my language but the code is in english.

I’m doing it that way but the camera doesn’t move, and I don’t know what the problem is, since gosot doesn’t mention any error.

extends KinematicBody

#variaveis de controles

var vidas = 100
var pontos = 0
var municao = 30

variaveis de camera

var sensibilidade = 0.4
var angulominimo = -90
var angulomaximo = 90

#variaveis fisicas

var vmovimento = 3
var gravidade = 9.81
var fpulo = 4

#variaveis de auxilio
onready var camera = get_node(“Camera”)
var vel : Vector3 = Vector3()
var vmouse : Vector2 = Vector2()

func Input(event):
if event is InputEventMouseMotion:
vmouse = event.relative

func _process(delta):
#rotaciona a camera ao longo do eixo x

camera.rotation_degrees -= Vector3(rad2deg(vmouse.y),0,0) * sensibilidade * delta

#limita a rotaçao vertical com os angulos maximo e minimo

camera.rotation_degrees.x - clamp(camera.rotation_degrees.x,angulominimo,angulomaximo)
#rotaciona a camera ao longo do eixo y

rotation_degrees -= Vector3(0,rad2deg(vmouse.x),0) * sensibilidade * delta

#resetar vmouse
vmouse = Vector2()
:bust_in_silhouette: Reply From: nah

camera.rotation_degrees.x - clamp…
should be :
camera.rotation_degrees.x -= clamp…