Unity - Translate get axis to proper touch control system

The player in my game moves on the horizontal axis only. So far it's moving via left/right arrows that pass Input.GetAxis("Horizontal") to my MovePlayer() function. It's a mobile game so I'd need to obtain the same effect with touch input.

Ideally it should work like an invisible analog stick that detect horizontal-only touch across the whole screen. Can you help me figure out how to make this happen? thanks....


Category: unity Time: 2016-07-28 Views: 0
Tags: control unity

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.237 (s). 12 q(s)