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 / problem with sprites positions

Author
Message
haliop_New
User Banned
Posted: 15th Jan 2017 12:39
hi..
I have a 3d game with some sprites and text
when I run the app on windows the positions are fine
but when I run it on my mobile device both export or broadcast the positions are wrong
for example
I have a simple Sprite positioned by offset on deviceWidth/2 ,deviceHeight/2 so its in the middle
but when I run the app on my phone its like its positioned without offset at 0,0
I thought it might be immersive mode setting so I turned it off but its the same
this is really bugging...

did anyone else experienced such thing ?

virtual resolution is set to 1920,1080
windowsize is 1920,1080, full screen = 1

works fine on pc but messed up on my phone
also my text is not at the right positions on my phone...

what the hell is this ? ! j/k
my head is overheating cause of this,
please help.

thank you for your time, haliop
.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Jan 2017 13:30
Screenshot? Code example?
haliop_New
User Banned
Posted: 15th Jan 2017 13:47
wait I think I have a way to fix it
haliop_New
User Banned
Posted: 15th Jan 2017 13:50
ok fixed
I used GetDeviceHeight/Width
instead of GetVirtualHeight/width

and on my mobile device which is 4k display it looked different from my pc which is 1920x1080

Login to post a reply

Server time is: 2024-04-16 21:38:06
Your offset time is: 2024-04-16 21:38:06