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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to implement strafing, diagonal movement, and step limiters

I have a few questions concerning how to program some of my ideas for a movement system into a project and would appreciate your help. Firstly, I would like to be able to switch the current side movement system (third person blueprint) to a strafing system, as is common in most FPS games. Secondly, I would like to know how to make a diagonal movement option (I will be using w, e, r, s, d, f, z, and v as my movement keys). Finally, I would like to know how to limit all movements except forward to one step per time the respective key is depressed. Is this possible? If so, how do I do it? Thank you in advance for any help you can give me.

Product Version: UE 4.8
Tags:
more ▼

asked Jul 12 '15 at 02:44 AM in Blueprint Scripting

avatar image

Strategos2000
1 1 1 1

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

2 answers: sort voted first

I can provide suggestion regarding limiting movement to one step per time the respective key is depressed:

  • Add a branch with condition 'Is Button X pressed' for every movement buton with respective buton instead of X and make the boolean value change to 'true' every time the buton is pressed, then change to 'false' when it is released. Continue input effect along 'false' branching path.

  • At the end of input effect of every buton add boolean state change to 'true' for as long as it's held

I hope that helps

more ▼

answered Sep 05 '17 at 02:22 PM

avatar image

Qba.Ole
1 2

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

I can provide suggestion regarding limiting movement to one step per time the respective key is depressed:

  • Add a branch with condition 'Is Button X pressed' for every movement buton with respective buton instead of X and make the boolean value change to 'true' every time the buton is pressed, then change to 'false' when it is released. Continue input effect along 'false' branching path.

  • At the end of input effect of every buton add boolean state change to 'true' for as long as it's held

I hope that helps

more ▼

answered Sep 05 '17 at 02:22 PM

avatar image

Qba.Ole
1 2

(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