x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Top Down WASD movement with mouse dictating rotation and which direction W moves you

I'm new to unreal and I've been scouring the forums trying to find a solution to this. Im making a top down game and i want to have WASD drive movement and and for the mouse to rotate the character.

Right now I have the mouse rotation and the movement working separately so W always moves the character to the top of the screen. but I want it so that I rotate the character to the right or left or any direction in between W always moves the character forward based on the direction they are facing.

I think i have an idea on how to do this I'm just not sure what to do or what it would look like.

I have attached a picture of what I have going on right now.

If anyone could help me out with this I would be eternally grateful.

Thanks alt text

Product Version: UE 4.14
Tags:
more ▼

asked Jan 12 '17 at 05:13 PM in Using UE4

avatar image

Calciumoxide37
1 1 2 1

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

I can use all the eternal gratitude I can get. :-)

It looks like it ought to work. What is the Axis/Action mapping for W specifically in "Project Settings > Input"?

more ▼

answered Jan 12 '17 at 05:37 PM

avatar image

CleanCut
2.1k 65 82 77

avatar image Calciumoxide37 Jan 13 '17 at 03:52 AM

Wow thanks for the quick response!I have it set as W= move forward

(comments are locked)
10|2000 characters needed characters left

The w still doesnt orient to the characters forward position can anyone help with this?

more ▼

answered Jan 17 '17 at 01:19 AM

avatar image

Calciumoxide37
1 1 2 1

(comments are locked)
10|2000 characters needed characters left

alt text this will set the player to move in the direction of the mouse cursor

untitled.png (452.2 kB)
more ▼

answered Feb 16 '18 at 06:03 AM

avatar image

DRBStudios
1

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question