- Home /
board game camera question
i have made a top view board game and would like to know if there is a camera script that will let me zoom in and out and move from side to side and top to bottom. Any help will be a apreciated
thank you
Wayne
That is so trivial, yet application specific, I would guess not. Best to have a go at implementing it yourself, then ask for help if you can't get it to work. Be sure to say precisely how you want the Camera to behave in response to the mouse.
Answer by Chris D · Jul 28, 2011 at 10:29 PM
What you're describing could be handled by a basic movement script attached to your camera and will depend on how you want to control it (i.e. mouse? keyboard? something else?), assuming you're using a non-orthographic camera. You could even stick a character controller on the camera and use the Move function. Search for movement tutorials and movement related questions on here/on Google and you'll quickly be on your way.
If you're using an orthographic camera, you'll have to play with the viewport size.