I have a problem and i cant get it right.
What i need to solve is how to find which tile a sprite is overlapping.
Example
Lets sayI have a tilemap with 2 different tiles with tile id 0 and 1.
Lets make a map of these two tiles and then put a sprite on this map
Now i want to see if the sprite is overlappin a tile with id 0 or 1 when i move the sprite around.
What is the best way to do this?