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.

AppGameKit Classic Chat / Manual scaling

Author
Message
Max Tillberg
19
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 28th Jun 2012 17:27
I read about the virtual and percentage based scaling in AppGameKit and wonder if it is possible to turn this of to be able to make the scaling manually? Usually I don\'t want the background to be scaled as the sprites to avoid black frames (it is better to scale and trim or stretch the background). I would also like to be able to ad extra \"tiles\" in a game if the format allowed this.

Sincerely,
Max Tillberg
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 28th Jun 2012 21:31
You need to pick one of virtual or percentage for your app. There is no third option.

The problem is getting the actual dimensions of the device you are running on before deciding what your display size is.

Assuming they work correctly (I haven't tested them), you should be able to call the GetDeviceHeight and GetDeviceWidth functions. Then you could make some decisions about your display.

But, you don't have that option for the initial images displayed for things like AGKSplash.png (which is now deprecated) and for the Default(-landscape/-portrait).png images for the iOS and Mac world.

Cheers,
Ancient Lady
AGK Community Tester

Login to post a reply

Server time is: 2024-11-23 17:32:14
Your offset time is: 2024-11-23 17:32:14