|
Really simple question
#261742
04/19/09 20:57
04/19/09 20:57
|
Joined: Jul 2008
Posts: 2,110 Germany
rayp
OP
 
X
|
OP
 
X
Joined: Jul 2008
Posts: 2,110
Germany
|
Im trying to make a small game like Warcraft 2. I need help for a really simple thing. How can i get the X,Y points of a mouse click (in world koord). Using MOUSE_POS.X is only for the current "screen" (upper left corner X=0). I need the real world x,y of the mouse click (to sent units there etc). Edit: Its an sprite based game. My view is on top. Thats why i only need x,y. Just working with MY.X and MY.Y, MY.Z is a fixed size. Please help and thanx. 
Last edited by rayp; 04/19/09 21:23.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Really simple question
[Re: Widi]
#261794
04/20/09 09:30
04/20/09 09:30
|
Joined: May 2008
Posts: 331 Lithuania, Vilnius
Jaxas
Senior Member
|
Senior Member
Joined: May 2008
Posts: 331
Lithuania, Vilnius
|
if you want to draw a selection box to, search for stratego2 example in AUM11 
The smaller the bug, the harder it is to kill. _________________________________________ Forklift DEMO (3dgs)
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|