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"

Input Axis MoveRight always return 0

I mapped W,A,S,D directions for a top down shooter I am working right now. I wanted to get the axis values of both MoveForward and MoveRight. I expect both should return either 1 or -1 respectively. But for some reason only MoveForward return 1 or -1. MoveRight stays at 0 all the time.

Please help! I don't know what to do.

Product Version: UE 4.15
more ▼

asked May 09 '17 at 05:32 PM in Using UE4

avatar image

19 2 5 8

avatar image Benergy May 10 '17 at 09:47 AM

Have you double-checked your input bindings? Especially the scale values. And how do you know that MoveRight is 0 when you press A or D? Have you printed the value to the log/screen?

avatar image PistolizedCannon May 11 '17 at 09:45 AM

Hi, thanks for the reply.

I figured what the problem was. I was using the same float variable for both MoveForward and MoveRight. It only gets the value of the former. I fixed it by making a separate float variable for the MoveRight.

avatar image PistolizedCannon May 11 '17 at 09:47 AM

How do I put "[SOLVED]" for this question? I'm sorry I'm very ignorant.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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