I working with this:
http://unity3d.com/support/resources/tutorials/2d-gameplay-tutorial.html
And I would like the camera to zoom out when the character jumps, … any ideas?
I working with this:
http://unity3d.com/support/resources/tutorials/2d-gameplay-tutorial.html
And I would like the camera to zoom out when the character jumps, … any ideas?
You could also use camera field of view. This doesn’t actually move the camera but rather ‘changes the zoom’:
camera.fieldOfView = 60;
You could also alternatively create an animation for your camera if you are still new to scripting and you don’t want to have to move your camera smoothly via script.
Hope this helps
You have two options, either create a second camera that remains disabled until you jump, this camera would be positioned at the distance you require. (unfortunatly this method would not show a smooth camera retraction but a quick snap).
alternativly depending on how your camera is currently scripted, simply call an increase in camera height or distance depending on which you require.