Dear math people, send help! 😢
Screen Dimensions: 1024x575
Tilesize: 32
So what I found to get x/y tile of your mouse you set an event at 0,0 then use that event as a base to find the mouse tile x.
This is what that looks like using my tilesize(32) which my screen width(1024) is divisible into!
However, my screen HEIGHT(575) is not cleanly divisible into my tilesize(32), so using this method produces one tile over or under positions, does anyone know how I can get the correct Y tile?
I can't even math but maybe there's some magical math fix to this problem? 😤
Screen Dimensions: 1024x575
Tilesize: 32
So what I found to get x/y tile of your mouse you set an event at 0,0 then use that event as a base to find the mouse tile x.
This is what that looks like using my tilesize(32) which my screen width(1024) is divisible into!
However, my screen HEIGHT(575) is not cleanly divisible into my tilesize(32), so using this method produces one tile over or under positions, does anyone know how I can get the correct Y tile?
I can't even math but maybe there's some magical math fix to this problem? 😤