@Code[VB]

Posts 16–24 of 24 · Page 2 of 2
Sprites are your friend when it comes to Xhairs.
=)
also what screen resolution are you using?
if you can tell me the resolution i will tell you the coordinates for
centering the crosshair in the middle of your game screen
Quote Originally Posted by Xlilzoosk8rX View Post
Sprites are your friend when it comes to Xhairs.
=)
also what screen resolution are you using?
if you can tell me the resolution i will tell you the coordinates for
centering the crosshair in the middle of your game screen
sorry about this... i dont usually come to this section since i use my ipod all the time ( plus this is a old thread and never got a good anwser.. )
i use 800*600

please help me to fix it
thanks you @Xlilzoosk8rX
Quote Originally Posted by Battlefield 3 View Post
sorry about this... i dont usually come to this section since i use my ipod all the time ( plus this is a old thread and never got a good anwser.. )
i use 800*600

please help me to fix it
thanks you @Xlilzoosk8rX
@Battlefield 3
well if you want center screen with
x=800
and
y=600

then to get center screen
you need to divide both number by 2
you do this because dividing by 2 gives you half way
across the screen in both directions

so, 800/2 = 400 which is the center of your screen height
then 600/2 = 300 which gives you the center of your screen width

so in the end

coor.y=400
and
coor.x=300
is the center of your screen

this works for all resolutions
in case you need it for future reference
Quote Originally Posted by Xlilzoosk8rX View Post
@Battlefield 3
well if you want center screen with
x=800
and
y=600

then to get center screen
you need to divide both number by 2
you do this because dividing by 2 gives you half way
across the screen in both directions

so, 800/2 = 400 which is the center of your screen height
then 600/2 = 300 which gives you the center of your screen width

so in the end

coor.y=400
and
coor.x=300
is the center of your screen

this works for all resolutions
in case you need it for future reference
how to add them in my code is the problem....
i asked a while ago but no body answered...
are you using VB or C++
im not sure how to do it in VB but in C++
you can use the MoveTo() and LineTO() functions
Quote Originally Posted by Xlilzoosk8rX View Post
are you using VB or C++
im not sure how to do it in VB but in C++
you can use the MoveTo() and LineTO() functions
Thanks I will look it up next week
@Xlilzoosk8rX
I don't think he even cares anymore..
i believe not,
didnt do anything except use bandwidth and storage space with this thread lol
solved /closed
Posts 16–24 of 24 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us