M
Mobie
Guest
I thought I was getting to be OK at GML, but things keep coming up that make me feel like I haven't learned anything! Here's my latest conundrum:
I have been reading the GM tech blogs about resizing a canvas to fit browser windows and can make things resize just fine, but it seems like the clickable areas of my button objects don't resize with the window. If I make the browser window smaller, I find that the clickable areas of my buttons are located nowhere near where the button draws. You have to move the mouse quite a bit away from the object to trigger the "Mouse Enter" sprite change, and click in that area away from the button to operate the button. This only happens when I output to HTML5; everything works fine when I set it to Windows. What am I doing wrong? I'm wondering if it has something to do with not using Draw GUI events, but I'm still not grasping that concept, what it is I'm doing wrong, or how to fix it.
Thanks for your help, and thanks even more for you patience with these dumb questions! -Mobie
I have been reading the GM tech blogs about resizing a canvas to fit browser windows and can make things resize just fine, but it seems like the clickable areas of my button objects don't resize with the window. If I make the browser window smaller, I find that the clickable areas of my buttons are located nowhere near where the button draws. You have to move the mouse quite a bit away from the object to trigger the "Mouse Enter" sprite change, and click in that area away from the button to operate the button. This only happens when I output to HTML5; everything works fine when I set it to Windows. What am I doing wrong? I'm wondering if it has something to do with not using Draw GUI events, but I'm still not grasping that concept, what it is I'm doing wrong, or how to fix it.
Thanks for your help, and thanks even more for you patience with these dumb questions! -Mobie
Last edited by a moderator: