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 change the characters movement by 90 degress by a press of a button?

Hi if you have the characters constantly moving forward (like an endless runner), how do you change to movement by 90 degrees by pressing a button?

Product Version: UE 4.9
Tags:
more ▼

asked Mar 06 '16 at 04:21 AM in Blueprint Scripting

avatar image

MattStH
43 26 31 38

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

2 answers: sort voted first

This would depend on your controller/pawn setup.

If your pawn is set to orient to movement direction then just change your velocity input 90 degrees on button press,

If your pawn ignores movement direction then on press you still need to change velocity input while also perhaps rotating the pawn to face the new direction.

There really are a number of ways this could work; which part of this are you having trouble with?

more ▼

answered Mar 07 '16 at 04:58 PM

avatar image

RimmyD
2.6k 98 16 97

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

Have a look at this endless runner tutorial

more ▼

answered Mar 17 '16 at 01:59 PM

avatar image

FrederickD
96 2 5 9

(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