Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Adding mouse support to ZNEAR-Flag #405777
08/07/12 09:30
08/07/12 09:30
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline OP
Expert
MasterQ32  Offline OP
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
hey!
i'm currently working on a level/game editor and i need to click on an entity
so far no problem, but this entity has the ZNEAR flag set (because it's the thing which allows you to move the object, i don't know the name)
so i can see it all times, but i can't use the mouse_ent feature because it is really hard to get a position where you can actually click on the entity while it's fully visible

would it be possible to enable a behavior like ZNEAR for the mouse_ent?
So i could also click on the fully visible gizmo (view entities won't work here)

greetings and thanks in advance
felix


Visit my site: www.masterq32.de
Re: Adding mouse support to ZNEAR-Flag [Re: MasterQ32] #405781
08/07/12 10:24
08/07/12 10:24
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
You could just do a vec_to_screen with the gizmos position vector and check if it's somewhat near the mouse position.

Re: Adding mouse support to ZNEAR-Flag [Re: the_clown] #405782
08/07/12 11:08
08/07/12 11:08
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline OP
Expert
MasterQ32  Offline OP
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
the problem: the gizmo is built out of 9 different models (x,y,z * move,rotate,scale)
so i can't just check with vec_to_screen/vec_for_screen i am near to the gizmo (because all parts have the same origin)


Visit my site: www.masterq32.de

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1