how to center the character on objects?

this is what i have rn just need to center the player whenever it collides with the object got no idea how to