Hello,
I have a problem. I am in the middle of making an FPS horror game. So far, I’ve been able to transfer all of my ideas to unity - and it works. Cool.
However, there’s a problem I’ve encountered and I can’t seem to find any similar topic anywhere. I am not sure if no one ever had such a problem or I am just so bad at developing games
I have started with Unity not so long ago, I am still learning its functions and coding in C# (I am a beginner).
I want to animate my FPS controller camera (it’s a main camera added to FirstPersonCharacter child object, i don’t have any other cameras added to the scene). My goal is to have a short cut-scene-like animation. You control your FPS controller to a place with a trigger. The trigger disables the controls so you can’t move your character during the animation. The animation should be simple look left and then look right (character is hearing something so he’s looking around). After that, animation stops playing and you gain your control back.
I have created an Animator Component for main camera and created two animations. First is Idle (nothing happening), and the second is CameraRotate (camera rotates to the left, than to the right, and then goes to initial rotation value). I’ve also set up the transitions in Animator Controller.
After setting this up, it occured that when in game mode, I am unable to move the camera using mouse (only up and down working).
Also, I have a trigger event placed in the game in which if the player enters the trigger a ghost is being spawned in front of the camera - but after attaching the Animator Component to the camera, the ghost would not instantiate… (it happens even if I disable Animator via the checkbox in the FirstPersonCharacter’s inspector). I need to re-load the project in order for the ghost spawn to start working again…
Is there anyone who could help me with this problem? In fact, I can just live without these cut-scenes but it would definitely be something interesting if I could make it working…
Thanks in advance for any help and suggestions!