Collision
Fixed the collision by properly getting the tiles that the player overlaps.
I just had to take the change in movement into account when creating the overlap rectangle.
So by doing that we know which tiles we can hit and therefore we only need to check those tiles.
Pretty happy that it works now.
I also understand the overlapping code better now and realise I don’t need it. If I do need to know when something enters a particular collider, then it needs to be done in a different way. So anyway, for now I could leave it out and only add it back in once I need it. Which now that I think about it, I probably do. Since I was playing with the idea of having things you can pick up…