x


Adjust camera for different screen sizes

Hello, I suppose this question has been asked many times before, but I still cant find a way to solve this. I'm developing a 2D pong game for Android. For testing purposes, I was building it on webplayer with a 960x600 resolution. When I built the project for Android and tested it on a SGS2, it all worked perfectly. However, I've just tried it on a SGS3 and because of its bigger screen size and resolution, I see things that are supposed not to be seen, such as the left and right walls that make the ball bounce.

How can I adjust the camera so that it always displays the same regardless the device screen size / resolution?

Thanks in advanced

more ▼

asked May 31 '12 at 12:45 PM

novikk gravatar image

novikk
0 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1037
x381
x9

asked: May 31 '12 at 12:45 PM

Seen: 478 times

Last Updated: May 31 '12 at 12:45 PM