how to find the center of the screen.

idoistuffidoistuff Member Posts: 197
edited November -1 in Working with GS (Mac)
I want my game to spawn actor at the center of the screen.. how would I find out what the center is?

1024 x 768

thanks

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    center of the screen will be exactly half of each number. So X and Y will be 512, 384
  • idoistuffidoistuff Member Posts: 197
    haha I feel stupid now! I totally knew that :)

    thanks though!
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Heh. You're welcome!
  • TreeTreeTreeTree Member Posts: 11
    Game.screen.size.width
    Game.screen.size.height

    divide them by two?
Sign In or Register to comment.