How would I get the game to fill the screen without losing graphic definition? I'm new to Android, so this is all new to me. Any help would be great.
Thank you....
Printable View
How would I get the game to fill the screen without losing graphic definition? I'm new to Android, so this is all new to me. Any help would be great.
Thank you....
In the application properties, there's a tab for the Android exporter. In there you should find some settings for the display. Like which orientation and how you'd like it to fit.
From looking at your screenshot, my best guess is that you'd want it set to:
Screen orientation: Landscape
Display: Fit inside (with black bars)
If you're wanting to put the game in full screen, uncheck the "Display status bar" box just below those options.
What I've been doing is experimenting to see which one fits best. The size of your frame/application is also important too, as Android comes in all sort of shapes and sizes.
Also unchecked heading so no title will be shown
Thanks guys,.it's getting there.
You mentioned that Android comes in all shapes and sizes, so how would I compensate for all the sizes. Like a one size fit all. My games window size is 640x480. It did help with the settings you both suggested, but still not full screen. See pictures of it now, much better, but not full screen yet. Game plays great on my phone. No lose of speed at all.
Thanks guys....
The white bars are there so it can keep the aspect ratio without it stretching outwards. Stretching it outwards to fill the entire screen usually isn't a desired way of doing it, as it can make graphics look a little bit strange in some cases. If you want the white bars to become black instead, then you need to change the "border color" setting to be black instead of white.
EDIT: Also, you should probably read this guide: http://community.clickteam.com/threads/74189-Scaling-for-iPhone-5-and-iPad-HOW-TO-DO-IT-RIGHT
Thanks HGF, i changs the whit border to black and it looks much better. I thought the link you posted was for iOS only. I will check it out. Thanks again.
Depending on how it easy it to implement in your game, what would look much better is if you set the frame sizes to 800x480 (which is a common android resolution), and use the "fit inside and adjust window size" option (keep window size 640x480, on many devices it will show 800x480) then you have to make sure the frame is centered properly, and some elements such as score and fuel would look better if you set their position at start of frame calculated using X Right Frame and X Left Frame.
Thank you, but if I change the frame size now, it would be a task as most of the events are within the 640x480 frame size now and I would have to move a lot of things around, but my next build will be what was suggested above. Thank you for taking the time to post.
Is there any way to auto adjust frame size to screen size of our device? For example if I have two smartphones one have screen resolution 1280×720 and second one have 800x480 so how I can set game to auto adjust frame size?
I'm pretty sure there is a setting "Fit Any Size", or something like that, but not sure if that will do it for you. Give it a shot.
you may use stretch to fill display mode.
I tried that and the graphics get all strange looking, but it does work.
Look at the two methods mentioned here, particularly the second one: http://community.clickteam.com/threads/74189-Scaling-for-iPhone-5-and-iPad-HOW-TO-DO-IT-RIGHT
And yes, they do apply for Android as well.
on android there is a mode to just adjust window size too, but then your app needs to be extremely flexible. fit inside and adjust window size is my favorite.
I think iOS also has adjust window size, since I remember the guide mentioning it. Fit inside and adjust window size is a pretty good option, I agree.