Forum rules - please read before posting.

Constrain First Person Camera

Hi!
Is there a way to constrain the first person camera of my player?
It is sit and I want only to rotate 180 degrees in horizontal (not 360).

Thank you in advance!

Comments

  • Hi, Cris, thank you very much!

    I attached the "ConstrainedFirstPersonCamera" script to a new SimpleCamera and assigned it in "Camera: Switch" (On Start cutscene). However, when I hit Play, nothing happens: I'm still seeing my player's first person camera. Am I missing something?

  • When your game's Movement method is set to First Person, the first-person camera will be switched to automatically during gameplay.

    In order to use another camera type during gameplay, you'll have to switch to another movement type - None, in this case.

    If this is for a game that's normally first-person in the traditional sense, you can switch your game's movement type on the fly with the Engine: Manage systems Action. Use this in your scene's OnStart cutscene before the Camera: Switch, and it should then work. Just be sure to use another such Action to switch back to first-person movement once the scene is over.

  • Thank you, Cris! It's working now :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.