Move a character with the mouse
I have created a blank blueprint project and I have a character that moves around the screen in third person. I am trying to find a way to move the character by using the left mouse button, like what happens with the top down template. How would I do this using blueprints? I cannot find a way of doing it. I believe it has something to do with the input settings within the project settings but I cannot figure it out.
(comments are locked)
|
Unlikely. I am assuming you want to move to click location. You will need to project the mouse location to world location and then update the character location on tick. The topic reads Move a character with the mouse but most likely you want to move to a clicked location instead (like in an RTS). Or you want the character to keep moving while you hold the mouse (like in a top down action RPG). Could you confirm? One way or another, it's going to be similar, here's one method (of many): https://answers.unrealengine.com/questions/712174/how-to-use-mouse-aim-on-2d-top-down-view.html Use the intersection as target location. Interpolate between your current location and the target. Rotation is included.
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here