CGPersia Forums
Release Blog CGPeers IRC Chat FAQ
Go Back   CGPersia Forums > Off Topic > CG General Discussion
Reload this Page Solving user-input issues for cross-platform 2D Unity game
CG General Discussion General discussion related to computer graphics and the CG industry

Thread Tools Search this Thread
Old 03-28-2014, 10:34:35 AM   #1
gdebojyoti's Avatar
Original Poster
Join Date: Nov 2011
Posts: 285
Thanks (Given): 162
Thanks (Received): 41
Lightbulb Solving user-input issues for cross-platform 2D Unity game


I am just beginning to create a 2D game which I intend to make cross-platform across multiple mobile devices as well as desktop ones. For this reason I have chosen Unity.

However I have a question regarding user-input.

What is the recommended way of controlling the movement of the in-game character? Should I try building one from scratch or should I use a plugin? I don't have much knowledge of C# or JS though; but I will be fine if there's a tutorial or two regarding this issue.

I would like to support inputs from mouse, keyboards, controllers (like the XBOX 360) and touch screen (tap, pinch, swipe) - this is essential for my game to run across multiple platforms.

The player will also be able to connect online to upload his score - so the script should also allow the user to type in details such as his username using hardware keyboards (in case of computers) or on-screen ones (in case of mobile devices).
is Offline  
Reply With Quote