A downloadable asset pack

Get this asset pack and 18 more for $49.00 USD
View bundle
Buy Now
On Sale!
50% Off
$3.99 $1.99 USD or more

This engine must be used with GameMaker: Studio. If you don't have GameMaker: Studio you can download it from www.yoyogames.com

Now supports GMS 2.3

This asset contains two objects that will help you with game scaling on mobile devices.

This scaling will keep the proportions of your game.

Scaling can be used on both portrait and landscape games

All you have to do is create a room and place it before anything else in your game.

Enable views in this room and make it visible. Set the size of the room, view, and port sizes to the size of your game.

Place one of the two provided objects in your room and you are done.

The object will prepare all your remaining game rooms.

The game will be scaled to fit any device in the following way:

The first object will scale the game so it fits the device screen size.

The remaining empty space will be filled with the background color.

You can use the empty space to place UI controls or anything else you want.

The second object will scale the game so that it has up/down or left/right borders cut,

depending on the device screen resolution.

When you intend to use this scaling you should move all important UI and game elements

a little further from the border.

In both cases, you have 4 special variables at your disposal: global.bLeftX, global.bRightX, global.bUpY, global.bDownY.

These variables contain the x or y coordinates of the device screen border with respect to the scaling being used.

There is no demo to download because it should be compiled on the device in order to work properly.

If you want to stay informed about my new assets Subscribe to my mailing list. You also receive a FREE asset for subscribing.

@smallbigsquare


This asset is also on YoYoGames Marketplace

Purchase

Get this asset pack and 18 more for $49.00 USD
View bundle
Buy Now
On Sale!
50% Off
$3.99 $1.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $1.99 USD. You will get access to the following files:

Game_Scaling_for_Mobile_Easy_g23_2.yyz 20 kB
Game_scaling_for_mobile_100.gmz 7 kB

Leave a comment

Log in with itch.io to leave a comment.