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"

WASD keys move FPS character super slow

I have begun an FPS project whereby I have mapped both the UP and W keys to MoveForward with Scale of 1.0, and DOWN and S to -1, with A and D to MoveRight. The UP/DOWN keys move as expected (or any other non-alpha key) but when mapped to any alphabetical key (ABCDEFG, etc) it moves the FPS character so slowly it's almost undetectable (though it is moving correctly, just waaay slow). With both UP and W mapped exactly the same way next to each other in the input section, UP has the correct speed but W does not. That doesn't seem to make any sense at all. Anyone have any ideas?

I was generally following this tutorial (link)

 #include "FPSCharacter.h"
 #include "Components/InputComponent.h"
 #include "GameFramework/PlayerController.h"
 #include "GameFramework/Pawn.h"
 #include "GameFramework/Character.h"
 #include "GameFramework/CharacterMovementComponent.h"
 ...
 void AFPSCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
 {
     Super::SetupPlayerInputComponent(PlayerInputComponent);
     // set up gameplay key bindings
     PlayerInputComponent->BindAxis("MoveForward", this, &AFPSCharacter::MoveForward);
     PlayerInputComponent->BindAxis("MoveRight", this, &AFPSCharacter::MoveRight);
 ...
 void AFPSCharacter::MoveForward(float Value)
 {
     if ((Controller != NULL) && (Value != 0.0f))
     {
         AddMovementInput(GetActorForwardVector(), Value);
     }
 }
Product Version: UE 4.19
Tags:
more ▼

asked Apr 23 '18 at 09:34 PM in C++ Programming

avatar image

Nukleardave
1

(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