title: Player goes a little bit under the ground after landing
body: <p>Hi I am making a game and I have a problem. When player lands to the ground he goes a little bit under the ground, for example like this:</p>
  <p><a href="https://i.stack.imgur.com/YLuT3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YLuT3.png" alt="enter image description here" /></a></p>
  <p>And I want someting like this:</p>
  <p><a href="https://i.stack.imgur.com/zBHGi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zBHGi.png" alt="enter image description here" /></a></p>
  <p>Here is my gravity code:</p>
  <pre><code>   if not player.player.collidelistall(MAPr) and player.yvel &lt; 4:
         player.yvel -= 0.3
     if player.player.collidelistall(MAPr):
         player.yvel = 0
     player.y -= player.yvel
     cy -= player.yvel
  </code></pre>
  <p>thanks!</p>