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 / orientation help

Author
Message
smerf
14
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 17th Feb 2019 17:00
setvirtualresolution(getmaxdevicewidth(),getmaxdeviceheight()) setrorientationallowed(0,0,1,1)
this is the code im using and it always starts in portrait mode then when i rotate my phone it changes but its half cut off. i don't ever ever want it in portrait mode. how can i fix this
A child's dream never dies.





Attachments

Login to view attachments
Golelorn
2
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 17th Feb 2019 17:50
What happens if you prevent the user from resizing the window?

This should start the phone in landscape. I forgot who gave me this idea. I think it was PartTimeCoder. Sorry, if it was someone else.

smerf
14
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 17th Feb 2019 22:17
you code got chopped off abd androids dont use scaleable windows as far as i know
A child's dream never dies.





blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Feb 2019 02:16
Your code works ok for me. Forces my phone into landscape mode as soon as it starts.
smerf
14
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 18th Feb 2019 20:01
well heck it doesn't work on mine at all have rotation turned off on my phone also so agk is rotating my screen.
A child's dream never dies.





blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Feb 2019 21:11
Maybe
1. uninstall/reinstall AppGameKit player on your phone
2. clear out the C:\Users\your_name\AppData\Local\AGKApps\your_app folder
3. Uninstall/reinstall AppGameKit on your PC
smerf
14
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 19th Feb 2019 18:48
update... turns out the code does work just fine. it just doesn't work from inside of a function. thank you for your time trying to help
A child's dream never dies.





Login to post a reply

Server time is: 2019-05-24 11:45:01
Your offset time is: 2019-05-24 11:45:01