Comments

Log in with itch.io to leave a comment.

Your project is amazing and has helped me a lot with something I don't understand very well. However, I've run into something quite curious. If I create a button hitbox using point_in_rectangle together with device_mouse_x_to_gui(0) and device_mouse_y_to_gui(0) to detect clicks or touches, everything adjusts as expected when I open the browser's Developer Tools (F12) and switch to mobile view. The problem is that clicks/touches within that area are no longer detected by the hitbox. I've tried many different approaches but haven't been able to solve it. Could you give me a hint or point me in the right direction?

As I mention in my replies on the blog, depending on exact functions, you may have to account for your canvas scale when taking in coordinates – ideally someone should send a PR to the GM HTML5 runtime but there’s a bunch of places where something happens at canvas/page scale.

Hey thanks, I had to fiddle around a bit - but this was a total lifesaver!

(+2)

I was able to modify this to solve a problem that has been plaguing me for three years! Thank you thank you, Vidam! You're a godsend...

Looks nice, would it work with GMS1.4?

For that you will have to follow the instructions on the blog post to assemble the extension yourself.

Sweet!

Love this, thanks YAL!

(+1)

Awesome extension, keeping an eye on your great work!