Godot Version
Godot 4.5
Question
So can somebody explain why this script isnt working because even if my mouse is pointing left and i press W it just goes up and doesnt go the place where the mouse pointer was `extends CharacterBody2D
@export var speed = 400
func get_input():
rotation = get_global_mouse_position().angle_to_point(position)
velocity = Vector2(0, Input.get_axis(“up”, “down”)) * speed
func _physics_process(delta):
get_input()
move_and_slide()`