T
tugalaw
Guest
Hi,
I'm somewhat new to GMS and I've been making some experiments.
One of them is using Draw GUI to display an interface that you can interact with - clicking buttons, opening menus, etc.
I've also added camera zoom to the mix, and that's where I'm having problems.
When zooming the view in and out, the GUI is perfectly displayed at its correct scale and position in the camera.
But the actual GUI objects (their collisions perhaps) are affected by the zoom.
Those objects have a mouse over effect and I can tell where the "real object" is in the room by moving the mouse around, and it doesn't match what I see in the GUI (i.e.: there's a button in the top left corner, and the mouse over is detected in the middle of the screen).
For two days I've tried a bunch of ways to solve the offset, but I'm nowhere close to a solution.
Help?
I'm somewhat new to GMS and I've been making some experiments.
One of them is using Draw GUI to display an interface that you can interact with - clicking buttons, opening menus, etc.
I've also added camera zoom to the mix, and that's where I'm having problems.
When zooming the view in and out, the GUI is perfectly displayed at its correct scale and position in the camera.
But the actual GUI objects (their collisions perhaps) are affected by the zoom.
Those objects have a mouse over effect and I can tell where the "real object" is in the room by moving the mouse around, and it doesn't match what I see in the GUI (i.e.: there's a button in the top left corner, and the mouse over is detected in the middle of the screen).
For two days I've tried a bunch of ways to solve the offset, but I'm nowhere close to a solution.
Help?