# How to turn 90 degrees with mobile touch input?

**URL:** <https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072>\
**Category:** UI\
**Tags:** interface, Mobile, Input, mobile-device, unreal-engine, Blueprint, question\
**Created:** [November 20, 2015, 12:05am UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072 "2015-11-20T00:05:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlatinumBlade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlatinumBlade](https://forums.unrealengine.com/u/PlatinumBlade)\
**Post date:** [November 20, 2015, 12:05am UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/1 "2015-11-20T00:05:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 20, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/2 "2015-11-20T23:09:08Z")

</div>

Hello PlatinumBlade,

This should be able to help you out:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

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.

---

<div class="post-metadata">

**Author:** ![PlatinumBlade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlatinumBlade](https://forums.unrealengine.com/u/PlatinumBlade)\
**Post date:** [November 20, 2015, 11:21pm UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/3 "2015-11-20T23:21:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_92200967](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_92200967](https://forums.unrealengine.com/u/anonymous_user_92200967)\
**Post date:** [November 21, 2015, 12:12am UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/4 "2015-11-21T00:12:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PlatinumBlade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlatinumBlade](https://forums.unrealengine.com/u/PlatinumBlade)\
**Post date:** [November 21, 2015, 10:30am UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/5 "2015-11-21T10:30:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PlatinumBlade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlatinumBlade](https://forums.unrealengine.com/u/PlatinumBlade)\
**Post date:** [January 21, 2016, 7:17pm UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/6 "2016-01-21T19:17:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [January 21, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/how-to-turn-90-degrees-with-mobile-touch-input/339072/7 "2016-01-21T19:20:17Z")

</div>

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.
