A downloadable asset pack

Buy Now$1.00 USD or more

ENG

This script is written in C# (Unity 2d) for 2D games.  It will allow you to add movement, zooming in and out of the camera to your game.  The script is adapted for PC and phone.  

Moving occurs as follows: 

PC - by holding down the right mouse button and moving the cursor, you can move the camera around the level.  

Phone - by holding your finger on the screen and moving it across the screen, you can also move the camera around the level.  

Zooming in and out of the camera occurs as follows: 

PC - by scrolling the mouse wheel in different directions you can zoom in and out of the camera.  

Phone - by holding two fingers on the screen and moving your fingers away/closer, you can zoom in and out of the camera.  

You can also adjust in the inspector: speed of approaching/removing, smoothness of movement, maximum approach and maximum distance

RUS

Данный скрипт написан на языке С# (Unity 2D) для 2D игр. Он позволит вам добавить в свою игру передвижение, приближение и отдаление камеры. Скрипт адаптирован под ПК и Телефон.

Перемещение происходит следующим образом:

ПК - зажимая правую кнопку мыши и перемещая курсор вы сможете передвигать камеру по уровню.

Телефон - зажимая палец на экране и перемещая его по экрану вы так же сможете передвигать камеру по уровню. 

Приближение и отдаление камеры происходит следующим образом: 

ПК - прокручивая колёсико мыши в разном направлении вы сможете приближать и отдалять камеру. 

Телефон - зажимая два пальца на экране и отдаляя/приближая пальцы вы сможете приближать и отдалять камеру. 

Так же вы сможете настроить в инспекторе: скорость приближения/отдаления, плавность движения, максимальное приближение и максимальное отдаление.


ENG
Approach/retreat speed

RUS

Скорость приближения/отдаления

ENG

Smoothness of movement

RUS

Плавность движения

ENG

Maximum approximation

RUS

Максимальное приближение

ENG

Maximum distance

RUS

Максимальное отдаление

Updated 10 days ago
Published 13 days ago
StatusReleased
CategoryAssets
AuthorRise
Tags2D, camera, code, game, script, script2d, Unity, unity2d, unity-script, zoom

Purchase

Buy Now$1.00 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $1 USD. You will get access to the following files:

ZoomScreen(Script).zip 937 bytes

Development log

Leave a comment

Log in with itch.io to leave a comment.