Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / Aspect ratio in manifest?

Author
Message
Juande
12
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 17th Mar 2013 12:12
Hi everyone,

I am trying limit the Android devices with the manifest file.

I have written this:


But I would like to limit others devices... my game has an aspect ratio ~1.7... and It has problems with an aspect ratio ~1.3. How do you limit the aspect ratio?

Thanks!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 17th Mar 2013 16:15
You do that in the game setup itself.

Are you using the percentage or virtual resolution method?

If you are using percentage, then you use the command SetDisplayAspect(1.7).

If you are using virtual, then you explicitly set the display with SetVirtualResolution(width,height) (both parameters are integers).

AGK will handle the actual adjustment of the display on the device to maintain the settings you use.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Juande
12
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 17th Mar 2013 17:42
Yes, but there is a problem with my text or 3d object.

I have a 3d object (a 3d paper) and my text is on this 3d object (this text is variable and it's not possible to use textures with my text). When you look this scene in screen with an aspect ratio ~1.7, the text is on the paper (and in the correct position)
If you use a screen with an aspect ratio of 1.3, the text is not on the paper...

For this reason, I need limit my app to some android device... (exclude the device with an aspect ratio of 1.3)

Thanks!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 17th Mar 2013 18:26
I don't know how to fix ratios for a 3D game, sorry.

Good luck!

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Juande
12
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 18th Mar 2013 09:39
Thanks anyway

I appreciate all comments.

Greetings

Login to post a reply

Server time is: 2024-04-16 20:40:45
Your offset time is: 2024-04-16 20:40:45