• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Snapping to grid after panning with view enabled

V

volky

Guest
Hello,

After a long time I wanted to start Game Maker programming again. However, currently, I have a problem with combining view, panning and drag & drop in GML. The project can be found here. When you start it, you will see some buttons on the right. Without panning, it is possible to drag them and drop into black area (the only allowed area), they will snap to the grid. If you pan the view using the middle mouse button, they will scatter around or not show at all. I tried to add
GML:
view_xview[0], view_yview[0]
to snap_grid, but no chance. Any idea how I can solve it?

Thank you.

PS: Also dragging the buttons is a bit laggy, a comment on that would also be appreciated.
 
Last edited by a moderator:
Top