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 / get the right screen to world when using overdraw?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 23rd Oct 2012 00:15 Edited at: 23rd Oct 2012 00:41
Iam trying to convert the screen 0 pixel to world cordinates.

It works with the mouse but cant seam to find another command that do this.

The standard screentoworld simply gives me the wrong data.

The problem is that iam using overdraw and dont want to show the blank edges of my tile map.

Edited.........
Solved it with an temporary fix like this.
overdrawfix#=(GetDevicewidth()/100)-10

So far does it seam to work in fullscreen and windowed almost the same.

i use the value added to the setview offset to not show the edges of the tile map that are blank.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Login to post a reply

Server time is: 2024-05-04 06:46:44
Your offset time is: 2024-05-04 06:46:44