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.

Dark GDK / [2D] Can any one help how to use wide screen mode display with no stretch.

Author
Message
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 4th Feb 2010 15:04
[2D] Can any one help how to use FULLScreenMode on wide screen mode display(for exam. 1440x900) with no stretch. It must look like 1200x900 with two black rectangles on sides.

Thanks!
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 4th Feb 2010 23:34 Edited at: 4th Feb 2010 23:42
make another camera inside your camera. and set the backdrop to black.. the proportion of 1440x900 is 1.6, the proportion of 800x600 is 1/1/3, that is, if you multiply 600x1/1/3=800 so, get the shorter side in 1440x900, that is 900*1/1/3= 1200 ... so the new resolution inside your 1440x900 screen in the new camera will be 1200x900... err hope that helps... maybe it sounds too confusing

hi
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 10th Mar 2010 10:49
Thanks! But can you write DGDK commands, how to do this... Please!
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 10th Mar 2010 13:14
... or help, how to shift all screen to the right?
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 10th Mar 2010 20:15
The title of the thread says 2D. You cannot use camera in 2D mode. If you use sprites, then the way to do what you want is to set the resolution of your full-screen window to the same resolution as the screen and then calculate the position of your sprites so that the left and right sides of the window remain empty. For example if you want to leave 120 pixels empty on the left, then add 120 to the X coordinate of every sprite.

Login to post a reply

Server time is: 2024-10-02 01:33:29
Your offset time is: 2024-10-02 01:33:29