Jump to content

How To Get X , Y, Z For dxDrawImage , or for make a HUD


WillyRL

Recommended Posts

Posted

Hallo,

I'm come again , and asking you again :cry:

I have a problem , I want make a HUD , But i don't know how to get , X, Y, and Z coordinates from my screen , how can i get a right X, Y , Z , Thank you guys.

Posted

I'm sorry i'm forgot , I mean X and Y value

, How can i get X and Y Value for my HUD

example:

I want My HUd on Top Right , or Top Left , how to get the X and Y Value, Thank you.

Posted

x,y = guiGetScreenSize()

-- to add it on center use:

x*0.5,y*0.5 as x,y values -- not exactly in center.. just an example

-- to add it on top right try:

x*0.9,y*0.2 as x,y values

There are width and height values also, don't forget em'

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...