I have went over and over in my head for the past month trying to get a simple platformer together. My problem is collision. So far from every tutorial I've found this tilemap based collision needs to be done this way: Check for for tile in x+xVel / tilesize if so xVel=0 same for x axis just subtracting for when the player goes left. Check for tile in y+yVel/tilesize. if so yVel=0. No matter how many different ways I end up programming this concept. The player always ends up clipping walls, falling through, or just hanging out 2 pixels before the collision. Can anyone tell me what's up?
By the way my collision check is a two point method. eg. Check top two points of the rectangle box if going up, bottom two for down ect.