Crash Bandicoot Camera style

hey guys , is there a way to create a camera that is stuck to a path and in the same time it follows the player ? ive looked everywhere in the internet , i found Itween camera but it doesnt work the way i wanted to , please help ,thanks !

This is quite easy, it’s actually a sidescroller camera with a third dimension. Just move the camera with the character / player.

### BandiCam.cs
using UnityEngine;
public class BandiCam : MonoBehaviour {
	void Update () {
	    float x = Player.CurrentPlayer.transform.position.x;
        float y = Player.CurrentPlayer.transform.position.y + 2; // +2: camera a bit heigher than the character. Or -2, depends on from which side you want to look.
        float z = Player.CurrentPlayer.transform.position.z + 5; // +5: distance between character and camera
	    transform.position = new Vector3(x,y,z);
        transform.rotation = new Quaternion(0,180,0,0); // rotate around y-Axis to look down
    }
}

### Player.cs
using UnityEngine;
public class Player : MonoBehaviour {
    public static Player CurrentPlayer;

    private void Start() {
        CurrentPlayer = this;
    }
}

Attach Player.cs to your character and BandiCam.cs to your Main Camera.

Look at the roll a ball moving the camera tutorial. It is so easy. I’ll tell you now, but if you can’t understand, look on there. This is in C#.

private Vector3 offset;

public GameObject player; //or whatever you named your player object

void Start()
{
offset = transform.position - player.transform.position;
}

void Update()
{
transform.position = player.transform.position + offset;
}

It’s sooo easy.