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"

character movement question

hey guys, what i want to know is: how can i make my character move slower when it's moving backward?? my speed is 600 and I want to when my character move backwards it is 300, how can i do this??

Product Version: UE 4.10
Tags:
more ▼

asked Jan 30 '16 at 03:50 PM in Using UE4

avatar image

No_Nam4
38 29 17 21

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

1 answer: sort voted first

I'm a total noob so this might be solving this the wrong way, but I would start with adding something to the blueprint along the lines of: "When Input 'S' is pressed, multiply movement speed by 0.5"

Edit: tried it out, this works, but it could probably be done "cleaner". Make sure you set the default value of SPEED to 1

alt text

testest.png (196.1 kB)
more ▼

answered Jan 30 '16 at 04:08 PM

avatar image

Sleeper.
110 7 11 16

avatar image ScottSpadea Jan 30 '16 at 05:56 PM

AddMovementInput expects a normalized value between -1 and 1, and clamps any value out of that range, so multiplying an input axis value by speed isn't doing much, besides changing the sensitivity of the joystick.

if you want to change speed, you should get the movement component, and set MaxWalkSpeed.

and instead of changing the speed on whether S was pressed, you should change speed based on whether GetInputAxisMoveForward is negative. that way, your gamepad and keyboard both work properly.

avatar image No_Nam4 Jan 31 '16 at 02:45 AM

it worked for me, thanks :D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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