Well that's just silly. To use that method without a modulo would require comparing integer division to float division, but I don't know how that would be achieved in GM.
I think grid_snapped (x, 0) would probably be the thing to use.
But trust me, don't play around with a y value in there. There will be a circumstance when it will break and do really odd things.
|