Remember the dog I mentioned days ago? I wanted to call him Bolt, but is not a he, is a she. Against all odds, the poor animal is still alive, and Im doing my best to feed her every day. The cleaning team that works in the parking space already knows me, and know that every morning I look for her and sit for a few minutes to give her some company. Dogs enjoy company, and she is not exception. The problem is that it is as painful to me when I have to leave her as it is for her to stay alone in the park until I come back with the food.
I had pending this since a month ago, so Im forcing myself to post it today. The goal is to provide a fully functional isometric like system that you can use with few or none modifications in your own game. So, lets get started. Start Unity3d and in your scene, add an empty GameObject, we will call it target . Create a camera object and drag it to target to make it child. The result looks like this: Now select Camera and set the values to this: For a true isometric like feeling, ortho projection is essential. You could use perspective, but it is not the same. Play with Size to suit your needs (we will be using this later, when implementing zoom). Now, lets create an script named CameraController, or whatever, and drag it to target GameObject. Lets implement scrolling, the easier part: go to Update() and add the following code: if (Input.GetKeyDown(KeyCode.W)) { dir = UP; } else if (Input.GetKeyDown(KeyCode.S)) { dir = DOWN; } e
Comments
Post a Comment