Game Development Community

Accurate Object

by Spencer Strombotne · in General Discussion · 09/15/2008 (12:09 pm) · 1 replies

I'm trying to create real precise and accurate object selection using ray casts but I can't manage to put the crosshairs in the exact center of the screen. Is there anyway to easily place the crosshair in the exact center of the screen? In the UI editor the resolution is at 1024x768. The crosshair is 16x16. I placed it at 520x392 and it looks centered in the UI editor but it always moves down when I go to play the game.

#1
09/17/2008 (6:33 pm)
Do you have your crosshair gui horizontal-sizing and vertical-sizing set to "center"? If you also slightly resize or reposition its parent control it will recalculate/center the control.