- Home /
Question by
MuradD · Jul 26, 2013 at 12:50 PM ·
2djavascriptzoomcamera movement
2D game camera zoom in/out (JS)
most 2D games have that movement .. when the game object "player" is moving the camera zooms out to show wider perspective .. for example: hill climb racing/android, or when you throw a bird in angry birds.
I am newbie please tell me everything it would be helpful
Comment
Answer by amphoterik · Jul 26, 2013 at 12:51 PM
If your camera is orthographic, then you can modify the size property. This will give you a zoom out / in effect.
Info on orthographicSize: http://docs.unity3d.com/Documentation/ScriptReference/Camera-orthographicSize.html