D
Diogo
Guest
Hello, there!
I'm trying to create an interface with buttons, while allowing zooming in the room, but having the buttons stay on the same position on screen.
The drawing part is easy, using the GUI function. The collision (for clicking), however, doesn't work, because the object stays in the same position in the room when I zoom in/out.
Is there a way of getting an object's coordinates on the screen? Or do I have to calculate them, and scale everything by hand?
P.S.: I'm aware of window_get_mouse_x(), but I think I still need the objects version of that.
Thanks!
I'm trying to create an interface with buttons, while allowing zooming in the room, but having the buttons stay on the same position on screen.
The drawing part is easy, using the GUI function. The collision (for clicking), however, doesn't work, because the object stays in the same position in the room when I zoom in/out.
Is there a way of getting an object's coordinates on the screen? Or do I have to calculate them, and scale everything by hand?
P.S.: I'm aware of window_get_mouse_x(), but I think I still need the objects version of that.
Thanks!