|
hello i have a game done with unity on pc/mac standalone how can i manage to convert the mouse/keyboard input into touch based sens and add an accelerometer to the game... all i want is to play it on android smart phone i have unity pro trial for now. the game is an fps shooter game ty
(comments are locked)
|
|
The people at Unity have done a lot to make it easy to convert your PC game to a mobile game. But, obviously it can't convert input by default. So, the simplest way to replicate a two joystick FPS controller is to do the following:
Responding to finger drags is as easy as responding to touch.deltaPosition when you move. And then there's the accelerometer. This depends on how the device is oriented, but basically taking the And finally don't forget that you can use conditional compilation to make cross-platform development easier: Thanks for the tip.
Aug 08 '12 at 08:54 PM
alee26
(comments are locked)
|
|
hey thx for the info i did it as u mentioned still have some compiler error trying to fix but i guess i solved the axis issue and input issue and working on compressing the graphic quality to work on my smartphone... ill keep this thread updated tx again hey dude...Did you done it perfectly?,,,because me too I want to develop a android game....and do it also first in pc because im not really familiar in android flatform......I'm A nebie in unity.... Thanks in advance dude....hope you will reply
Jun 25 '12 at 12:44 PM
winresh
(comments are locked)
|
