Center of iPhone Screen?

11clock11clock Member Posts: 450
edited November -1 in Working with GS (Mac)
I'm trying to center a background on the screen for my game. I thought that 240x160 would be the center, but the background doesn't seem to fit exactly, as I see black lines at the top and right sides of the screen. What is the actual center of the screen?

Comments

  • youngster9youngster9 Member Posts: 326
    The black edges might just be the camera rectangle. There is a big rectangle and a small rectangle. Those should go away in preview. Or if this happens even in preview Make sure the image is 480x320.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    screen.size.width/2 and screen.size.height/2 will get u the center of the screen

    Your probably already on the center though. Weve had a bug in gamesalad for a whhile now that throw images off a couple pixels when u preview. Thats why your seeing black lines, your seeing the scene color showing threw. Move your image over or wherever you need to to compensate
Sign In or Register to comment.