I get this error: parser error: expected end of statement after expression, got ':' instead

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

the error is in movimiento: Vector2 ()

func _process(delta):

movimiento: Vector2 ()
if Input. is_action_pressed("ui_right"):
	movimiento.x +=1
if Input. is_action_pressed("ui_left"):
	movimiento.x -=1
if Input. is_action_pressed("ui_down"):
	movimiento.y +=1
if Input. is_action_pressed("ui_up"):
	movimiento.y -=1
if movimiento.length() > 0:
:bust_in_silhouette: Reply From: Zylann
movimiento: Vector2 ()

This is not valid syntax. Perhaps you missed a =?

movimiento := Vector2 ()