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 Studio Chat / [SOLVED] How to use the whole screen

Author
Message
NPNPNPNPNPNP
4
Years of Service
User Offline
Joined: 29th Aug 2019
Location: Paris, FRANCE
Posted: 13th Oct 2019 18:16
Hello,
I am using the percentage system.
The aspect ratio of my app is 16/9, but when I put the Sprite at 0, 0 then it displays as it was 4/3 aspect ratio :

The author of this post has marked a post as an answer.

Go to answer

CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 13th Oct 2019 21:38
GetScreenBoundsLeft/right/top/bottom tell you how far beyond your virtual resolution you can go. So, SetSpritePosition(Rectangle,GetScreenBoundsLeft(), GetScreenBoundsTop()) will place your sprite in the very top left of the screen.
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 13th Oct 2019 22:00
This post has been marked by the post author as the answer.
Another option is to use:

SetDisplayAspect(-1)

Then top left is always 0,0 and 100,100 is bottom right no matter what the window or screen size is
NPNPNPNPNPNP
4
Years of Service
User Offline
Joined: 29th Aug 2019
Location: Paris, FRANCE
Posted: 14th Oct 2019 16:12
Thank you for your reply !

Login to post a reply

Server time is: 2024-04-19 13:22:20
Your offset time is: 2024-04-19 13:22:20