Icon

Game Scaling for Mobile Easy

SmallBigSquare

You must be logged in to obtain assets

Description

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: bLeftX, bRightX, bUpY, 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.

You can also follow me on Twitter (@smallbigsquare)

End User Licence Agreement (EULA).

Age Rating: None

Version

GMS1 - Version 1.0.0. Published December 4, 2015

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait