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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

I want to move players fast for short distance

I want to dash to move a short distance at high speed by combining specific keys and direction keys, but it will not work. How should I do?alt text

Product Version: UE 4.21
more ▼

asked Nov 18 '18 at 01:02 PM in Blueprint Scripting

avatar image

17 1 2 7

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

2 answers: sort voted first

OK , I see . U want to boost in a specific direction , but You have made a mistake in its calculation . 1. You forgot to feed in you boost direction arrow component , as I can see 2. And you need not its location but its forward vector - it is a normalized vector which you should multiply on value of your boost strength and then add this multiplied directional vector to your actor's location. Like this https://youtu.be/fp9DZKXhu2U

alt text

more ▼

answered Nov 19 '18 at 08:04 AM

avatar image

31 5 4

avatar image Tarrow100 Nov 19 '18 at 03:17 PM

Thank you very much. Thanks to you, you can do dash move as you want. Thank you for your kind guidance.

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

It should If Your flow does actually getting there . So Try to set breakpoints and just check it

more ▼

answered Nov 18 '18 at 03:08 PM

avatar image

31 5 4

avatar image Tarrow100 Nov 18 '18 at 03:42 PM

No, unfortunately this BP has not reached it. I tried it many times. Please give hints if there is any other way.

avatar image KAPA6UH Nov 18 '18 at 05:31 PM
  1. First of all check if your tick is activated on this BP in it's class defaults .

  2. Try to use sequence node to run your logic "parallel" to those collapsed graphs to avoid looking for mistake in them

  3. Use Print String to watch bool values while playing This logic should work https://youtu.be/fxQ2LY9SLbo

alt text

avatar image Tarrow100 Nov 18 '18 at 10:34 PM

Thank you very much. Only the movement process with button input succeeded. (For some reason my BP will output in the opposite direction unless the movement value is set to Minus) (Since the player is moving in the air, the Z axis (height) was excluded) However, it seems that the movement direction picks up only the X axis of the world coordinate instead of the movement direction (key input direction) of the player. As a result, the movement only moves the X axis of world coordinates, but it seems that it is not possible to move according to the direction key input like the movie there.alt text

(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