Script-wise, how do people go around making a system for coordinates for grid-based object placement? Normally, the objects have the global_position values, which correspond to the pixel units. But if I want to have a grid-based position, it should retrieve the position that is based on the size of the object in pixels (see the attached image).
I also want to be able to retrieve objects at said position, but have no idea how would I do that without some kind of a collision object that exists only when the code wants to check position - seems like not the best solution.