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 turn 90 degrees with mobile touch input?

Hi I am working on a project where we run forward and in some point we need to turn 90 degrees in a direction to not die. I made this happen with A, D, Left, Right keyboard keys but i also want it to work on touchscreen. I tried many ways and channging x axis scale or values does not work. Any help?

Product Version: UE 4.10
more ▼

asked Nov 20 '15 at 12:05 AM in Blueprint Scripting

avatar image

21 6 10 12

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

1 answer: sort voted first

Hello PlatinumBlade,

This should be able to help you out:


As for doing it with a touch device, you can have Widgets set up as buttons on the screen to press that will turn the player in the desired direction. You could even make them invisible but cover one half of the screen each so that if the player touches the left, they'll turn left and vice-versa.

more ▼

answered Nov 20 '15 at 11:09 PM

avatar image PlatinumBlade Nov 20 '15 at 11:21 PM

That is exactly my problem, I tried to create UMG buttons, but I can't make the character to turn the desired direction when I click any of the these two buttons. Can you give me some help on the blueprint?

avatar image lukefwilson Nov 21 '15 at 12:12 AM

To manually set the rotation of a player, try Get Player Controller > Set Control Rotaion

avatar image PlatinumBlade Nov 21 '15 at 10:30 AM

That does not work, there is nothing for the button blueprint for get player controller or set control rotation

avatar image PlatinumBlade Jan 21 '16 at 07:17 PM

After a good while, I finally realised my problem and got this to work, thanks for the help :)

avatar image Matthew J Jan 21 '16 at 07:20 PM

Ah glad to hear it. I would've responded but it seems that this one fell through the cracks of our tracking so I had completely forgotten about it. I apologize for that.

(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