Loading...

Unity3D/2D: Mobile Touch Controls - Moving a Character from Left to Right

68,371 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jan 26, 2018

Full Source Code: https://pressstart.vip/tutorials/2018...

---

While working on my latest game, I found it very difficult to find a tutorial that explained how to make a character move by tapping either the left or right side of the screen. My first strategy was to create two buttons, but then I discovered there is no press and hold function with native Unity buttons. So instead I had to build buttons to give you a visual reference (press down effect) and then I use the screens width as a way to detect finger position. Overall it ended up being very simple to do and I share that with you in this video.

As always if you have a better way of doing it, please let me and this community know in the comments.

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...