Topdown RPG/Diablo Camera and Movement

There are 2 things i’m trying to accomplish. One is to have a camera translate/move with the player character, but lock is rotation so the character can face any direction on screen.

The second this is to have a movement script that has the player rotate and face the any direction that they are moving.

Good references are Diablo and Torchlight.
Thanks!!

Just add to your camera the component SMOOTHFOLLOW that you find in the standard assets. These were a GREAT surprise also for me :slight_smile:

But as far as I know, smoothfollow does not lock rotation such as diablo. In other words it rotates with your character.

I’m currently studying scripting so I can’t help directly but if you alter the smoothfollow or add something to it. You can probably lock rotation

Thanks for the suggestion, but Smooth follow doesn’t lock the cameras rotation to the world which is the goal, but to the character.

yeah, i’m new to scripting too. it can be done. there is a game called Guerrilla Bob made with Unity that does it.

If you don’t put mouse movement script to the character then the character doesn’t turn and your camera will never move from its initial point of view.

Thanks everyone for you help.

Here is response that provides a script the that locks the cameras rotation, but still allows player rotation.

http://answers.unity3d.com/questions/21017/diablo-style-camera-and-movement