Help, I'm just a new to GODOT, how to fix that

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

extends Actor

func _physics_process(delta: float) → void:
var direction: = Vector2
Input.get_action_strength(“move_right”)-Input.get_action_strength(“move_left”),
0.0
)
because English is not mother tough so if u know Vietnamese, use it :slight_smile:
I can’t use var direction, warning said I cant “The local variable ‘direction’ is declared but never used in the block. If this is intended, prefix it with an underscore: '_direction”
And this “The argument ‘delta’ is never used in the function ‘_physics_process’. If this is intended, prefix it with an underscore: ‘_delta’”

:bust_in_silhouette: Reply From: magicalogic

Add an opening “(” after Vector2.