How can you find screen positions (x,y)
For example you use it in DrawSprite
How can you find screen positions (x,y)
For example you use it in DrawSprite
What do you mean? Position from the world to your screen, or just… the screen?
X is left-right 0.0-1.0
Y is top-down 0.0-1.0
Is this the only way i could do this by guessing the screen x,y location?
I still don’t understand what you are trying to do. If you are just trying to draw something on your screen unrelated to whats showing around you in-game, then yes… you’ll need to use trial and error to get the positioning correct.
yes , what other way you though it was ?
the game can’t guess where you want on the screen so you have to tell by giving coord.
it’s quiete easy , think it’s in percent (0 at 1) , so you want something in the middle it’s x = 0.5 y= 0.5
you want something in the top right corner it will be x = 0.95 y = 0.05 ( depending of the size of your item)
Instead of guessing you could also calculate it, but it is faster to guess it.
do you know the coords for the center of the screen for fax aop?