# Add two touch button each one half of the screen.

**URL:** <https://forums.unrealengine.com/t/add-two-touch-button-each-one-half-of-the-screen/437786>\
**Category:** UI\
**Tags:** button, Mobile, Input, touch-interface, unreal-engine, question\
**Created:** [November 17, 2018, 1:15am UTC](https://forums.unrealengine.com/t/add-two-touch-button-each-one-half-of-the-screen/437786 "2018-11-17T01:15:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salvo\_Nostrato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Salvo\_Nostrato](https://forums.unrealengine.com/u/Salvo_Nostrato)\
**Post date:** [November 17, 2018, 1:15am UTC](https://forums.unrealengine.com/t/add-two-touch-button-each-one-half-of-the-screen/437786/1 "2018-11-17T01:15:16Z")

</div>

I am trying to setup my interface controller for a runner mobile game. I just want to add two buttons each one has two take half of the screen. When I Touch the left one the player goes left and the right one the player goes right.  
When I click both in the same time the player will jump.  
It seems a easy task to solve however, I spent all day trying to achieve this without success. I have looked all over internet and I find and tried some solutions but they don’t work.

So far I have tried using:

**Touch Interface Setup**

Managed to get two buttons (like the picture below) assigned left and right movement. Only Left works , if I touch the right to the player goes left. Another problem here is that I cannot get the two buttons to resize depending of screen size. I have tried to cast the touch interface and call the variables but I cannot find a way to do this.

**BLUPRINT**

I have tried inside the player blueprint to get the half of the screen. I have managed to detect right and left and when I attach the to “Add Movement Input” I have to keep touch to turn instead of holding the direction.

What I am missing here?  
Someone can explain how I can achieve this please?

 ![259635-screenshot-2018-11-17-at-005533.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/8/c887cb878f15bda966cfb77fc6ff17a23ad95e12.png)

 ![259633-screenshot-2018-11-17-at-010439.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/9/7398670f258217321a2d8949a3910c97d2da0177.png)

 ![259634-screenshot-2018-11-17-at-010540.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/7/ff753349e0720868e1f81aaee6b83bbff5383c48.png)

---

<div class="post-metadata">

**Author:** ![Salvo\_Nostrato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Salvo\_Nostrato](https://forums.unrealengine.com/u/Salvo_Nostrato)\
**Post date:** [November 17, 2018, 2:46pm UTC](https://forums.unrealengine.com/t/add-two-touch-button-each-one-half-of-the-screen/437786/2 "2018-11-17T14:46:49Z")

</div>

Managed to solve.

 ![259689-screenshot-2018-11-17-at-144606.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/f/6bf8367d48ac5b2e3867b2b6c95625bde5568401.png)
