Hello Unity this is my first post. I want to code a game but how do I code iPhone and Android controls into my game? Is it the same thing or do I have to make 2 games with Android controls and one game with iPhone controls ? -Flapsion
It's quite similar, Unity has documentation on that, I'm fairly new at it but it depends on what you wanna do.
Here is the Manual Reference. If you scroll down you can see information on the Android and iOS (iPhone/iPad). http://unity3d.com/support/documentation/Manual/Android-Input.html This is the Script Reference for a little scripting help. http://unity3d.com/support/documentation/ScriptReference/Input.html
Here is what I did for a simple side to side tilt that runs on iOS and Android. Code (csharp): if (Application.platform == RuntimePlatform.Android) { Debug.Log("Android"); _acceleration.x = -Input.acceleration.y; } else _acceleration = Input.acceleration; The x on Android seems to be the y on iOS and inverted. However you can us the Application.platform to find out what OS the user is running and make things work that way. Also works for ads, gamecenter etc.
Okay Thank you I will maybe ask later but for now I will need to learn more coding and try to make my first game with the Unity Game Engine, but what way do you think is the best way to earn money on your games? Advertising or sell them for about 1$ in Android and iPhone app store. Because Advertising will earn you money all the time, but if you sell your app you only get that 1$ one time + Google and Apple is charging %. -Flapsion
Some successful devs will share with you, like this: http://iphone.ezone.com/2011/02/4-golden-rules-of-iphone-game-design/ and this http://iphone.ezone.com/2011/01/cracking-the-app-store-top-200/ I think that an ad supported version and a pay version do well, especially if you use in app purchase to allow the free version to become a paid one.