title: Collision with Bitmap AS3
body: <p>So I created a nice collision system shown <a href="https://www.youtube.com/watch?v=TVAU7Y0tc_I&amp;user=badfitz66" rel="nofollow">here</a>. Now I have my own character sprite, which has messed up the collision on all sides. </p>
  
  <p>edit: because people are misunderstand what I want, I WANT it to overlap on the bottom and top, it gives it a 3D effect. My problem is that it's colliding incorrectly with the bitmap </p>
  
  <p>I've tried using the pixel perfect collision system but I have a problem with it:</p>
  
  <p>It only detects collision right at the edge, as you can see in the video, the ball can go slightly in front and behind the wall like it wasn't just a flat plane.</p>
  
  <p>code responsible for the current collision (it did have some other stuff but that's been removed):</p>
  
  <pre><code>    for each (var wall in Walls)
      {
          if (wall.hitTestPoint(Character.x, Character.y, true)) //col right
          {
              Character.x+=CharacterSpeed;
          }
          if (wall.hitTestPoint(Character.x, Character.y, true)) //col left
          {
              Character.x-=CharacterSpeed;
          }
          if (wall.hitTestPoint(Character.x , Character.y, true)) //col bottom
          {
              Character.y+=CharacterSpeed;
          }
          if (wall.hitTestPoint(Character.x, Character.y, true)) //col top
          {
              Character.y -= CharacterSpeed;
          }
      }
  </code></pre>