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
Need help with 2D layered entities #416765
02/04/13 11:39
02/04/13 11:39
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
Hello, everyone

I had some problems in understanding the concept of 2D layered entities blush and I want to know what they are and what we use them for

Also, I want to know the difference between "mouse_pos.x" and "mouse_cursor.x"

Thank you for reading

Last edited by The_KING; 02/04/13 12:24.
Re: Need help with 2D layered entities [Re: The_KING] #416779
02/04/13 14:37
02/04/13 14:37
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Are you talking about panels or about view entities? Please be more specific about what is unclear.

mouse_cursor is the position of the windows mouse cursor. This always corresponds to the the position of the windows mouse and hence can also be negative. If the mouse is left of the engine window mouse_pos.x will be negative.

mouse_pos corresponds to the engine mouse. If e.g. you set mouse_mode to 0 this variable won't be updated unless you do it yourself. If you set mouse_mode to 4 it will get automatically updated.

http://www.conitec.net/beta/amouse_mode.htm


Always learn from history, to be sure you make the same mistakes again...
Re: Need help with 2D layered entities [Re: The_KING] #416787
02/04/13 18:51
02/04/13 18:51
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
I mean 2D layered entities (like: a sky, as I think)

And concerning the mouse part, I couldn't understand the difference though grin (I understood, but your saying that this may be negative and that may be negative get the things a little confusing)

Thank you

Re: Need help with 2D layered entities [Re: The_KING] #416788
02/04/13 19:12
02/04/13 19:12
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The manual is pretty detailed about entities: http://www.conitec.net/beta/aentities-intro.htm

It's of no use if I repeat everything that is already there. Can you break down your difficulties concerning entities to a question?

I'm sorry that the negative coordinates irritated you. But it really is much simpler than it sounds. The coordinates for mouse_cursor are calculated relative to the upper left edge of the engine window. If the mouse cursor is ten pixels right of the window's left border then mouse_cursor.x will be 10. If the mouse_cursor is 13 pixels left the engine window (i.e. not within the window's bounds) then mouse_cursor.x will be -13.

Does that make it any clearer?


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, 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