Hi,
I want to create a feature in my Game where the Player Character can take Pictures from defined hotspots. It's a classic Adventure in 3D Game where the player collect different pictures and can arrange them on a crazy wall later on.
I only want the Player to change perspective from defined hotspots. The First Person Player should not move, only look around, with the cursor in middle – like in the First Person Settings.
My Idea was two create two different scenes. One with my normal 3rd Person perspective Player and one scene with a first person player. But the first Person player setting works only global, does it? Or is there any possiblity to change it individual for a specific scene? I managed to bring the First Person player Template in, but it doens't work well. As shown in this Video, the scene changes to another scene with a first Person player, but the cursor is not fixed, and I can only move around with a & d (I changed the Player script to "Motion control: Just Turning"). I bet it need I custom script which overrides the setting for only this scene to be in First Person? Any simple solutions?
I already read a lost of postings in this forum about changing 3rd/1st Person but non of them fit for my solution or I didn't understood it completely – I dont have a clue about code
Any Ideas? Thany you very much in advance
Jan
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Maybe you could create two players, one in third person and one invisible in first person that you could switch around?
If you're only looking to switch to a first-person perspective camera, and not actually have the Player move around in a traditional first-person manner, you don't need to rely on AC's "First Person" movement method.
Instead, use this camera type from the AC wiki, which provides first-person free-aiming without the associated movement:
https://adventure-creator.fandom.com/wiki/Camera_-_Constrained_first-person
You can then switch to this with a regular Camera: Switch Action.
Thank you very much, the constrained first person script worked well for me.
What I did:
1 created s aecond camera with the script
2 created a Hotspot with the following Actions Camera: Switch, Player: Constrain (Disabled all the movement setting, and Cursor Lock: Enabled
3 Limit Hotspot to Main Camera
4 created other Hotspots with Limit to FirstPersonCamera and checked Single 'use' interaction (so they work with Cursor Lock)
5 created a hotspot on the ground to Switch the Camera again und change the Player: Constrain settings
I tried to create a UI element for a camera view finder look, but didn't managed to use it only for a specific camera (tried to create a canvas with Render Mode "Screen Space - Camera" and Render Camera "FirstPersonCamera" -> but it is not shown during gameplay).
Is there any simple possibility to have a second UI für the First Person Camera? Thought about to create a specific Menu with AC but don't know if it is possible. Would be really nice if there would be the possiblity to change the "Appear type - specific camera" or is there a other way?
You can use the Menu: Change state Action to turn on or unlock the Menu the same time you switch to the camera.
that was easy didn't thought about that, thanks