Hi,
So because I'm creating an app for android, I need to make sure all of my objects are positioned by code in order for the app to be compatible with every screen size. At the moment, I'm trying to place a counter exactly in the center of my screen. I use:
Set Y position to VirtualHeight /2
Set X position to VirtualWidth /2
The problem with that is, although the Y position worked perfectly, the calculation regarding the X position has placed my counter completely off the X axis. And this placement changes in accordance to screen size. When I run it on Windows, the counter is placed perfectly in the center.
What's even more odd, is the fact that normal active objects with the same code are placed in the center of the screen in any android device (using emulator). So the counter in this case is the disobeyer.
I've also tried to positioning the counter in accordance to the visible edge, but I get exactly the same results.
Any Ideas?
Thanks.
Samer.