Move 2D Game Object With Finger Swipe In Mobile Game Made With Unity Software | Android Or iOS @AlexanderZotov
Move 2D Game Object With Finger Swipe In Mobile Game Made With Unity Software | Android Or iOS  @AlexanderZotov
Uploaded August 2021 | Updated September 2026, 3 weeks ago
#unityswipe #unitymove #unityandroid #unitymobile
In this video I show you a quite simple script that will help you to move your character or any game object up, down, left and right with finger swipe in a mobile game (Android or iOS). Also a simple animation is implemented.

I play games here - twitch.tv/zzotoff
You are very welcome :-)

Thank you :-)

Previous videos
2D Top Down Grid Based Movement - youtu.be/b17fYOlRkck
Simple Animation For Character Movement - youtu.be/zvkSFzAjGas

Project Here drive.google.com/file/d/1ebuUabd75HvnVq0bXhBNdMI81IRoUYAo/view?usp=sharing

In the previous videos which you can get by the link in the description I created this simple project. I recommend taking a look at those videos. In this project I can move my character with the arrow buttons of my keyboard. To make it possible to use this movement feature on mobile platforms I modified my script a bit. Here it is. I use a start touch and end touch positions to determine which way my character should go. Coroutine is used here as well. So in the update method instead of reading keyboard input I get touch input. Start touch position is obtained when I touch the screen. End touch position is obtained when I release my finger. And depending on coordinates and differences between those positions a corresponding direction is passed to coroutine which performs the movement and simple animation.
Move 2D Game Object With Finger Swipe In Mobile Game Made With Unity Software | Android Or iOSUnity Tutorial How To Move Object Or Player With UI Buttons Left And Right In Android GameUnity Tutorial How To Move Character Or Gameobject Left And Right Touching A Screen In Android GameHow To Pick Up Coins With Different Value And Make A Simple Money Counter In 2D Game Made With Unity2D Top Down Grid Based Movement | Move Character By Steps In A Game Made With Unity SoftwareHow to add laser sound or audio effects SFX to Unity 2D arcade game | Very simple Unity 2D TutorialEnter A Door And Load Next Or Previous Scene Feature For Your 2D Game Made With Unity SoftwareSimple Eyes Blinking Idle Animation For 2D Character In Game Made With Unity Software | Easy WayAMAZING PHONE STAND or HOLDER IN 5 SECONDS VERTICAL AND HORIZONTAL | DIY | ORIGAMIHow To Detect Swipe And Tap Touch Gestures In Android Game Made With Unity Software To Control ItUnity Tutorial How To Move Gameobject With Offset Between Touch Position And Objects PositionHow To Move A Game Object With Arrow Keys In A Game Made With Unity Software? Simple Tutorial.
Alexander Zotov |

Move 2D Game Object With Finger Swipe In Mobile Game Made With Unity Software | Android Or iOS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER