Android Universal build

Hi guys.

So, I am trying to build an universal build (starting with a iPad Portrait).

I have the following for iOS:

iPhone 4S & Below Rule: If game.Screen.Size.Height = 480 Change scene.Camera.Size.Width = 862 Change scene.Camera.Origin.X = -46 End Rule iPhone 5 Rule: If game.Screen.Size.Height = 568 Change scene.Camera.Size.Width = 1024 Change scene.Camera.Origin.X = -128 End Rule iPad Rule: If game.Screen.Size.Height = 1024 Change scene.Camera.Size.Width = 768 Change scene.Camera.Origin.X = 0 End Rule

Now, what would be the numbers for android? (Kindle Fire Portrait?)

Thanks guys!

Comments

  • DuesDues Member Posts: 1,159

    Since there is a lot of different screen sizes on Android devices, I would recommend using the stretch feature.

    Just a thought :)

  • vafurlogivafurlogi Member Posts: 203

    I bought a universal template from the marketplace that uses ipad as a starting point. Little work and now all screen sizes and aspect ratios work, and no ugly stretching. Might be worth it.

  • seveksevek Member, PRO Posts: 30

    @vafurlogi‌, thank you for the reply.

    I found one template from the market place and I read the comments. It looks like it has some cropping issues with Android devices.

    Which template did you use?

    Thanks alot

  • vafurlogivafurlogi Member Posts: 203

    Its that one, I just saw that comment. I think I know what his problem was though. What the template does is it "reveals" the sides. So it expands the view to both left and right but keeps the height. You will have to have backgrounds that are wide enough to work with devices that have wider aspect ratios (so instead of 4:3 aspect background, use something closer to 16:9 and the sides will only be revealed if the aspect calls for it). If you're using a uniform background, like a simple colour, this is not a concern. The template then moves objects (that you select) so they are always the same distance from the edge of the actual device (like UI items). I think I'm making it sound more complicated than it is, check out the video on it here:

    The guy with the comment has a background thats exactly the Ipad size. The template keeps the height on his artwork but when the sides are revealed, there's nothing there, no image to fill the gaps and hence the black bars. This takes a bit of work but when you've done it you can make sure it looks right on all devices, tablets and phones.

    I should also mention that I've no connection to whoever made this template whatsoever, I'm just glad I used it :smiley:

  • seveksevek Member, PRO Posts: 30

    Perfect! :D Thanks man!

    Really appreciate it! haha

    I will definitely watch the video and implement the template.

    Cheers!

Sign In or Register to comment.