# Stop accidental touches on mobile games

**URL:** <https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Android, Blueprint, question\
**Created:** [August 5, 2022, 1:15pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030 "2022-08-05T13:15:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vlahui\_on\_pc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlahui\_on\_pc](https://forums.unrealengine.com/u/Vlahui_on_pc)\
**Post date:** [August 5, 2022, 1:15pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/1 "2022-08-05T13:15:20Z")

</div>

Hi guys! I have a project that I want developed. In that project, I have some interactable actors, such as doors. In my blueprints, I have an actor sequence that rotates the door. To trigger it, I use a “on touch input begin” node, but that has some problems. If I want to swipe the camera to look into another direction (it’s a first person game) the actor detects the touch and plays the animation. I was wondering if I could use something like an on-clicked event, where you need to press and release with your finger on the actor. That way, accidental touches would dissapear. Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [August 6, 2022, 11:05am UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/2 "2022-08-06T11:05:14Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/5/c7538d2189b77738823309887d7c3734fa065bda.png)  
by the way, you probably have a line trace?  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/2/4d20edff5a2570d45779d3cbaf8bd83680a2d4df.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/3/9a3ddfb6bff8d568c37b799abde7c4423634d346.png)

---

<div class="post-metadata">

**Author:** ![Vlahui\_on\_pc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlahui\_on\_pc](https://forums.unrealengine.com/u/Vlahui_on_pc)\
**Post date:** [August 10, 2022, 2:18pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/3 "2022-08-10T14:18:12Z")

</div>

Sorry for the late response. Could you make the screenshots in a way that fits the blueprints? I can hardly understand what to create and where to connect the nodes to.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [August 11, 2022, 12:06pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/4 "2022-08-11T12:06:48Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/8/9487721de89f73d26e9c7d3ac6b9b89544e4fe8f.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/9/e098c605f5b3bb28408795cb2526a81fa0c8a82c.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [August 11, 2022, 12:38pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/5 "2022-08-11T12:38:50Z")

</div>

it’s difficult to say exactly what code you need…this piece of code will tell you what you clicked on… and there you can bind the action already

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/9/af9104fea831d2e0596acbda8be5fb2857c2807a.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/8/228284fc7ac734c4acb65c2097c2efb5c148b597.jpeg)

---

<div class="post-metadata">

**Author:** ![Vlahui\_on\_pc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlahui\_on\_pc](https://forums.unrealengine.com/u/Vlahui_on_pc)\
**Post date:** [August 11, 2022, 12:50pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/6 "2022-08-11T12:50:17Z")

</div>

Thanks for responding to me. I want a piece of code that triggers an action if an actor is pressed and released in the same spot.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [August 11, 2022, 1:05pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/7 "2022-08-11T13:05:11Z")

</div>

then just write location to variable 😃

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/e/51eda02907786b60ecf194504374c7082b817c1c.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [August 11, 2022, 1:09pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/8 "2022-08-11T13:09:32Z")

</div>

but I advise you to use a sphere

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/4/f84294bb4f4f91bc827c5087264e5d6ff4d8be1d.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [August 11, 2022, 2:00pm UTC](https://forums.unrealengine.com/t/stop-accidental-touches-on-mobile-games/622030/9 "2022-08-11T14:00:03Z")

</div>

> [@Vlahui\_on\_pc](#):
>
> I want a piece of code that triggers an action if an actor is pressed and released in the same spot.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/1/bf1b84d425a96ca56b0f660cec1e89d98293a113.png)  
OR  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/4/5d440ab217a7ac921865b966690de232aaf5342b.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/1/3f1824856ed9afaab0e72083f1592df140e651ac.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/1/c917c148b8f4e91d90d66c12a512ae8b76282dad.png)  
General view  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/4/9f433434e1c18b125538cdad39833df0e7f0931c.png)
