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.

Newcomers AppGameKit Corner / Render and GetImage is dependent on screen portrait vs landscape mode?

Author
Message
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 24th Mar 2019 22:22 Edited at: 25th Mar 2019 03:00
My app is meant for landscape and it's already setup to force landscape mode. I have an image of 400 x 400 and I want to split it up by 16 pieces (100x100 pixels). When user holds phone portrait mode it splits the image sizes up correctly. When user holds phone landscape mode it doesn't resize it correctly and so I'm getting 16 pieces 100x100 pixels.

Is it possible to always split up the 16 pieces to the same size regardless if users hold phone portrait or landscape?

Below is the code I'm using.

2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 26th Mar 2019 00:16
I added setspritesize to always force fixed size so this took care of the different backbuffer dimension depending on portrait or landscape.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 6th May 2019 18:26

Login to post a reply

Server time is: 2024-11-08 23:48:50
Your offset time is: 2024-11-08 23:48:50