Player Movement Help, Been trying this last 2 days and have been helpless

I’m trying to copy the movement from the hand in Black & White 2 and have been struggling the last 2 days. I’ve done a lot of research over 2 days worth but am still having the problem. I basically wanna copy the movement in the video below but have no clue how to reference it. I’ve been using the code below but basically it move’s on the Y axis whenever I want it to only move on X & Z.

The link to the video is Movement Example - Album on Imgur

Vector3 temp = Input.mousePosition

temp.z = 30f;

this.transform.position = Camera.main.ScreenToWorldPoint(temp);

Movement Example

Bonus Points : My camera also moves on the Y using the code below but I would prefer it to move like in the video and go forward on the Z instead of moving on a Y. Definately giving a gold award if someone can solve this for me. I’ll put my camera code below. I’ve tried a million different things with the camera but am still unable to resolve it as well. I’ve tried all the .transforms but am unsucessful

if (_enableMovement)

{

Vector3 deltaPosition = Vector3.zero;

float currentSpeed = _movementSpeed;

if (Input.GetKey(KeyCode.LeftShift))

currentSpeed = _boostedSpeed;

if (Input.GetKey(KeyCode.W))

deltaPosition += transform.forward;

if (Input.GetKey(KeyCode.S))

deltaPosition -= transform.forward;

if (Input.GetKey(KeyCode.A))

deltaPosition -= transform.right;

if (Input.GetKey(KeyCode.D))

deltaPosition += transform.right;

Still can’t solve this one :frowning:

Please use code tags:

Then come back and maybe someone will read through the code. It’s too messy to read.