How to move character with the mouse cursor?

Im making a game where i want the player to move to the exact position of the cursor in every flick, i started with the Top-Down template and ended with this, but the character follows the cursor instead of moving with it instantly

How can i make it to move with the cursor? im using UE5

In the template the movement revolves around the Movement Component handling the traversel of the character capsule following a path calculated through the navmesh, avoiding obstacles and doing all sort of other things.

Were you to instantly position the character where you needed, you’d throw away all the benefits and rules the movement component provides.

follows the cursor instead of moving with it instantly

Set Actor Location instead or use the Teleport node which, at least, tries to find some wiggle room if the target location is obstructed.

If you want to avoid obstacles, you will need to do it manually with this method.


Or perhaps you can set the character speed and acceleration reaaalllly high. Might work well enough and could get the best of both worlds.