# (need help) Swipe left and right for mobile game

**URL:** <https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 18, 2015, 7:54am UTC](https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005 "2015-10-18T07:54:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DVS\_Dredd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DVS\_Dredd](https://forums.unrealengine.com/u/DVS_Dredd)\
**Post date:** [October 18, 2015, 7:54am UTC](https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005/1 "2015-10-18T07:54:43Z")

</div>

So Im trying to make an infinite runner for mobile. I watched UE4 tutorials to make it. But I have a problem… I want to make it so when you swipe left or right the character jumps lanes. The tutorial doesn’t show anything like that. The best example for what I mean is like the app “subway surfers”.

---

<div class="post-metadata">

**Author:** ![Pabooklas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pabooklas](https://forums.unrealengine.com/u/Pabooklas)\
**Post date:** [October 18, 2015, 10:10am UTC](https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005/2 "2015-10-18T10:10:34Z")

</div>

This code will detect if you are swiping left or right and up or down:

 ![SwipeSupportBig.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/31a78363c2a219cda484c437aeb42b42b718c318.jpeg)

Use that to tell yourcharacter what to do

---

<div class="post-metadata">

**Author:** ![DVS\_Dredd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DVS\_Dredd](https://forums.unrealengine.com/u/DVS_Dredd)\
**Post date:** [October 18, 2015, 5:26pm UTC](https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005/3 "2015-10-18T17:26:12Z")

</div>

Awesome thanks

---

<div class="post-metadata">

**Author:** ![Pabooklas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pabooklas](https://forums.unrealengine.com/u/Pabooklas)\
**Post date:** [October 18, 2015, 8:31pm UTC](https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005/4 "2015-10-18T20:31:19Z")

</div>

No problem.

---

<div class="post-metadata">

**Author:** ![Moby-47](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moby-47](https://forums.unrealengine.com/u/Moby-47)\
**Post date:** [January 20, 2026, 3:47pm UTC](https://forums.unrealengine.com/t/need-help-swipe-left-and-right-for-mobile-game/45005/5 "2026-01-20T15:47:21Z")

</div>

God bless you!
