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"

How to disable diagonal movement in third person project?

Hey community! After days of looking and experimenting on different blueprints I can not figure it out for the life of me. I have a third person layout but using a top view gameplay and I want to only go left right up and down. So question is how would I do that and disable diagonal movement? Also instead of the mobile joysticks, how could I put a dpad as a controller?

Thanks for all the answers and help!!

Product Version: UE 4.10
Tags:
more ▼

asked May 04 '16 at 05:46 PM in Blueprint Scripting

avatar image

Dupeboys08
24 6 5 8

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

1 answer: sort voted first

How about clamping the values at which the player can move? So, 0, 90, 180, 270 or whatever it is, you'll have to play around with it. Hopefully floating point errors don't happen ;)

  • Another way: Check that ForwardInput>RightInput (if moving forward), and swapped for Right Vector (if using vector movement).

How about posting screenshots of your current control scheme, so we can help you out better.

more ▼

answered May 04 '16 at 05:53 PM

avatar image

VictorBurgos
2.4k 61 27 113

avatar image Dupeboys08 May 04 '16 at 08:35 PM

I'll try that when I get home. Currently at work right now :/ but hopefully that'll work. And my control scheme is pretty simple now. After biting a handful of fingernails I started from scratch and went to a simple inputaxisfoward connected to a add movement layout. And same for input axis move right.

avatar image VictorBurgos May 04 '16 at 08:43 PM

Let me know if you have any issues, post screenshots of your current setup if so.

If it works as intended, please upvote and mark my answer "answered" so that we can close this out appropriately. Good luck!

(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