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.
I mean 2D layered entities (like: a sky, as I think)
And concerning the mouse part, I couldn't understand the difference though (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/1319:1202/04/1319:12
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...