An RTS style camera for 2D applications with drag panning, zooming and area clamping. Perfect for RTS or platform type games

Everything shown in this example is included in the package for quick prototyping


Features:


- Limit Camera to rectangular area with easy to manipulate editor controls

- Panning speed, Zooming Limit, Zoom Speed, drag speed all adjustable from the editor.

- GUI based camera Dolly track system with integrated editor GUI controls

- Automatic smoothing, Straightening of track and time scaling

- Set the camera to traverse the track over a set time or tracked an object

- 3 Example scenes included with asset (Camera Dolly | Follow Player | RTS Style)

- Customizable in scene GUI plus much more.


How To:


- Simply add the Drag Camera 2D script to your main camera and you are ready to drag and go.

- Adding bounds is done via a click of the Add bounds button and an in scene adjustment to mark out the area.

- Using the dolly track is just as easy with the add dolly button and the easy to use in scene controls to adjust your track.


Asset Goals

The main goal of this asset is to allow the user to simple add this script to a camera and have the camera respond to user click and drag movements without any coding.

The act of dragging the camera (panning horizontally or vertically) with the mouse or keyboard input has been added to the script which can be added to a camera to allow the user to manipulate the view based on the users click and drag movement.

The camera can have limits set to stop the camera being dragged out of the desired viewing area.

The camera can zoom in and out with the scroll wheel with limits on minimum and maximum zoom as well as setting the amount to zoom in and out with each increment of the scroll wheel.


Visit www.gamedevelopment.blog to find out more.

StatusReleased
CategoryTool
PlatformsHTML5
AuthorDFour
Tagsasset, camera, Unity

Leave a comment

Log in with itch.io to leave a comment.