- Home /
Question by
varun001 · Jun 26, 2017 at 01:30 PM ·
cameraplatformerzoom2dplatformer
Detecting object if it is within bounds of Camera.
I am developing a 2D platformer game. I want to detect when the player goes out of camera bounds. How can I do that? If it is out of camera bounds then I want to zoom out camera otherwise retain original camera orthographic size.
Please provide code or links to working sample.
PS: I know there are inbuilt functions available for this but I need a running sample or appropriate code.
Comment