Announcement

Collapse
No announcement yet.

Auto block 2d topdown camera

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto block 2d topdown camera

    Hi, i'm working on a 2d top down game. I have a big room which is bigger than the camera. Since the camera follow the character inside the room, how can I block it when the character is going closer to the wall that limitates the room?

    #2
    Easiest way would be adding blocking volumes that block camera only. And then some camera arm with lag to smooth camera movement.

    Or you can do some vector math and manage camera that way.

    Comment


      #3
      thanks!!Is there a function to known the dimensions of the room sprite? So I can calculate at what distance I have to stop

      Comment

      Working...
      X