i am working on a undertale styled game and for some reason a cant move more than one camera a tryed so long to go convigure this script but it wont work
the code:
if (inuse)
{
Camera.enabled = true;
Listener.enabled = true;
if (moving == true)
{
//print(Cameratf.position);
//print("can move");
if (Collider.IsTouching(rail))
{
Cameratf.transform.position = new Vector3((player.transform.position.x * moveonx) + offset.x, (player.transform.position.y * moveony) + offset.y, offset.z);
}
}
}
else {
Camera.enabled = false;
Listener.enabled = false;
}
Could you send the entire code? I cannot understand the problem by just looking at this code. But it looks like only one camera could be inuse at a time.
– New_Game_Ideas