Touchscreen joystick movement regarding char's looking(2d top-down for phones)

Make sure to paste with proper formatting


Look like you did account for some rotation before in this function:

You could rotate the input in this signal-connected function, using transform though:

func _on_joystick_jspressed_sig(pos: Vector2) -> void:
    velocity = pos.rotated(rotation) * speed