toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
how to find the center of the screen.
idoistuff
Member
Posts:
197
March 2011
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
SlickZero
Houston, Texas
Member, Sous Chef
Posts:
2,870
March 2011
center of the screen will be exactly half of each number. So X and Y will be 512, 384
idoistuff
Member
Posts:
197
March 2011
haha I feel stupid now! I totally knew that
thanks though!
SlickZero
Houston, Texas
Member, Sous Chef
Posts:
2,870
March 2011
Heh. You're welcome!
TreeTree
Member
Posts:
11
March 2011
Game.screen.size.width
Game.screen.size.height
divide them by two?
Sign In
or
Register
to comment.
Comments
thanks though!
Game.screen.size.height
divide them by two?