DemoProductions / shmup

3 stars 2 forks source link

Keep player on screen #15

Closed flip40 closed 8 years ago

flip40 commented 8 years ago

Might just be able to use this: http://answers.unity3d.com/questions/174958/keeping-the-player-inside-the-screen.html

ghost commented 8 years ago

A less programmatic way would be to surround the main camera with colliders. Will look more into the referenced link later tonight.

flip40 commented 8 years ago

Hm, might work. The problem I wanted to avoid is the potential different camera sizes based on screen dimensions or resolution and such... if the colliders are children to the camera it might work.