Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
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’”