martyj Posted April 13, 2016 Share Posted April 13, 2016 I will be starting to introduce cutscenes in my game. My design idea is to use a secondary camera other than the player's camera, using SetRenderTarget on the secondary camera to tell the game which camera to render to the screen buffer. I was wondering if you call Hide() on a Camera, will it not render? I don't want to render the player's camera and the cutscene Camera at the same time. Thanks, Marty Quote Link to comment Share on other sites More sharing options...
thehankinator Posted April 14, 2016 Share Posted April 14, 2016 Hidden cameras do not render a scene. If you hide the player player camera and show your cutscene camera there may not be a need to use the render target. 1 Quote Link to comment Share on other sites More sharing options...
Rick Posted April 14, 2016 Share Posted April 14, 2016 You should be able to put place pivots as markers and move the actual camera between those all. Side note, you might want to look into coroutines for cutscenes. They can give a nice and easy way to manage sequential things like in cutscenes. With a coroutine function you can have code that reads like: MoveToPointAsync(...) PlaySoundAsync(...) ShowText(...) etc. for your entire cutscene. Which is much better than managing the state of everything on your own. I have a cutscene entity script that handles managing some of this stuff. The coroutinue function is what ends up being in it's own file having it's own function and what gets ran for the cutscene. 1 Quote Link to comment Share on other sites More sharing options...
martyj Posted April 14, 2016 Author Share Posted April 14, 2016 I was planning something similar to coroutines. Basically specifying points for the camera and the time between movements. Then specifying a list of time frames where actions occur and function callbacks to perform operations such as falling rocks, ect. Quote Link to comment Share on other sites More sharing options...
Rick Posted April 14, 2016 Share Posted April 14, 2016 It'll be interesting to see what you come up with without using coroutines. I can't even imagine in my mind doing it without them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.