Posted: Tue Nov 03, 2009 6:59 pm Post subject: Controlling a camera to make a cutscene in Unity
Hi all,
I was watching the following youtube video and I wondered how you animate and control a camera to make a cut scene in a game as either a scene file then it loads the next level or the cutscene viewed first then the player takes control and continues in FPS all within 1 scene?
Joined: 16 Mar 2008 Posts: 846 Location: Manchester UK
Posted: Tue Nov 03, 2009 7:28 pm Post subject:
Something like this should work you will need to make
2 scripts 1 that triggers the camera of and on another that turns of your second camera on start of the game.
Code:
var camera1 : GameObject;
var camera2 : GameObject;
I have a fairly similar task to solve. I want my camera to take a predefined path without the possibility for the user to move on it's own.
What I did was probably not the most elegant solution, but it should work.
I recorded the camera path manually. I set up a script that records the Transform of the camera for each frame and I write this information to a text file.
So I basically walk the path on my own which needs to be recorded. To replay this predefined path, I just read the values from the text file again and set my camera to the recorded positions (and rotations if needed).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum