Forum rules - please read before posting.

Constrain a Camera on Path with Input

edited February 4 in Technical Q&A

Hey, i wanted to ask what's the smartest way for changing the Camera and making it constrained to a path.

It kind of works when using "The Player -> Constrain" and locking him to a Path and only leaving the "Up Movement" available but it's not quite what i wanted to achieve.

I want the Player to be able to press forward and the camera should move forward through a path.
He should be able to look around a little bit (like with the constrained first person camera) but not back - that also shouldn't influence the movement and at the end of the Tunnel smoothly transition back to the First Person Player.

Essentially I'm trying to do something like this (start at 1:15):

Comments

  • Welcome to the community, @miko.

    It sounds like you're mostly there - constraining the Player to a Path will prevent them from moving in unwanted directions.

    For the camera: you might get by just switching to a regular GameCamera that has Follow cursor? checked for a little bit of freedom. Otherwise, the constrained first-person camera. Either way, you'll need to use the Engine: Manage systems Action beforehand to temporarily switch to Direct movement.

    When in First Person, AC will automatically switch to the regular first-person camera in gameplay - so changing this will let you use a different camera for this sequence.

    Since this affects the "Movement method" field in the Settings Manager, however, you'll also need to set this to First Person by default when your game begins. You can do this with a similar Action placed in your Settings Manager's ActionList on start game asset.

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.