HTML5 scaling problem: mask/mouse offset

S

Supidupi

Guest
hi everyone,

After following the yoyo blog scaling tutorial for html (room scaling only) --> blog/67/scaling-for-html5, I have the problem that the game scales but the buttons become "unclickable". First I thought that the button mask just stays put while the rest scales but after some research it seems that it must be a problem with the mouse offset.

I saw a thread on reddit with a solution that might work for me, since the guy asking followed the same yoyo tutorial. Because I am new to Game Maker, I dont understand the final solution, like where he puts the code that fixes it and if that's all he does. I sent him a message but he did not reply yet.
https://www.reddit.com/r/gamemaker/comments/6ipgf8/wrong_mouse_coordinates_on_canvas_resize/
 
Top