Die if touch screen edge

Hi guys,

Im trying to make my bool comes true if my character hits a collider at the edge(like swing copters)

Currently my problem is resolutions how am i supposed to make it stay at the edge for every resolution when in my experience it always resizes its width.

My current solution is just to make the bool true when my render is not visible and im trying to make it like swing copters where i can collide with the edge.

Thanks

There is multiple solutions in my opinion:

  1. You can change scale of their transforms, depending on value of screen width and height.
  2. You can just make you colliders insanely long :slight_smile:
  3. You can make invisible colliders that will follow x, y coordinates of you object, so when it will be on corner your collider will already be there.