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
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).
This is the Script Reference for a little scripting help.
I will try Thank you for reply
Here is what I did for a simple side to side tilt that runs on iOS and Android.
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.