Question by
techn0gmer · Aug 24, 2017 at 03:58 PM ·
collision2d-platformerbounds
How to create level borders for a 2D platformer game?
I have a 2D platformer game and I am trying to prevent the player from walking off the edge of the scene. I tried creating rectangles and adding collisions to them and that didn't work. I don't know what to do!
Update: I figured out that the collisions work except not fast enough. I can walk through the wall and it also pushes me back but not enough. How do I make it push me so I cant get through?
border-problem.gif
(222.0 kB)
Comment
Your answer
Follow this Question
Related Questions
OnTriggerEnter getting called more than once 0 Answers
When is OnTriggerExit2D called? 1 Answer
My OnTriggerEnter2D(Collider2D other) not working 1 Answer
Collider gets sometimes stuck at wall 0 Answers
Horrible Collison 2D -- 1 Answer