Collision trouble


  • *
  • Posts: 2
I'm working on a top down shooter game and I am working on a way so the player can't go off screen. I made a border to stop this with 4 collision boxes to make a wall and it follows the camera. It works for the most part, but when I walk into it diagonally I faze through it. When I go straight in one direction though it does stop me. Any idea on how I can stop it from fazing me through when hitting it diagonally?


  • *
  • Posts: 2197
Have you seen the "cannot exit screen" behaviour? maybe that would be a better option than collisions.