• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android / Amazon Fire How to keep aspect ratio after disabling application surface.

P

PHL

Guest
Dear people. Please help me.

After disabling the application surface on GameMaker Studio (to make my game fast), the game image fills the screen and ignores my aspect ratio.

Is there code I can use to make the game maintain its aspect ratio when application surface is disabled?

I am making the game for Android.
Thank you.
 

Mehdi

Member
@Andrey
Hi, the blog you are offering to, is somehow irrelevant.
The problem is : after disabling the Application Surface, everything (not just HUD elements) gets stretched. This blog only talks about Hud elements.
so the question is: How to draw the whole game correctly, after disabling Application surface?
 

kupo15

Member
@Andrey
Hi, the blog you are offering to, is somehow irrelevant.
The problem is : after disabling the Application Surface, everything (not just HUD elements) gets stretched. This blog only talks about Hud elements.
so the question is: How to draw the whole game correctly, after disabling Application surface?
So you are using your own surface instead of the application surface, right? What are your camera view dimensions and what is your manual surface dimensions? Also do you have anything checked in the Game Options such as set to fullscreen?
 

Mehdi

Member
Hi thanks for your attention.

1: My game is aimed for Android devices being created in GMS2.
2: I have disabled the Application Surface . Because i have experiencing severe fps fall on mid-low devices.
3: I have ticked Full Scale in global game setting
3: I want to create my own surface which is supposed to do the Application Surface job. and then draw it in Draw GUI.
4: I have read through nearly all the articles and forum posts about Scaling, However nothing seems to work and the whole game looks ugly stretched.

So what should I do in terms of surface dimension? Viow port scale?camera view scale? etc
 
Last edited:
Top