What should I do to make my character face the mouse

Im a Noob
i wan to know What should I do to make my character face the mouse
in GDS

You can do it like this:

func _physics_process(delta):
    look_at(get_global_mouse_position())
1 Like

In addition to @KingGD’s answer, I highly recommend taking a look at the getting started section in the docs. It’s really good and covers a lot of what you need early on, including this: 2D movement overview — Godot Engine (stable) documentation in English

1 Like

thank u

1 Like

it s work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

What should I do if I want to use WASD to control character movement