- Home /
Diagonal camera limit
Usually we limit the camera movement with something like this:
if(camera.transform.position.x > someLimit)
{
DontGoThatDirection();
}
But i'm developing a isometric strategy game like Transport Tycoon, Age of empires 2, and im using a isometric tilemap.
And that's why i need a diagonal limitation for the camera movement. How can i implement it? Below a ilsutration of what i need:
ismetriccamera.png
(10.5 kB)
Comment
Your answer
Follow this Question
Related Questions
How to determine the direction of a 2D sprite on a Y as Z Tilemap 0 Answers
Isometric Character Question 0 Answers
pixel perfect 2d Sprite in 3d world with isometric camera, how to do it right? 1 Answer
Unity 5 - 2d Instantiate at mouse position 1 Answer
Trying to make the camera follow the player but stop at the edge. 1 Answer