Hi guys, I'm sure this is super simple to resolve! I'm new to Adventure Creator, I've been searching the forums and skipping round the manual, still I'm not sure what to do without doing my scene over again so appreciate a tip!
I have a scene.. All worked well, camera followed the player, navmesh works, tintmaps, looks great. I accidentally deleted my camera and saved over it. Now if I insert a new camera via 'Create' button by 'Default Camera' in the Scene menu... the camera works and follows the player, but when I click anywhere, the player will no longer move around.
This is probably something really simple, a checkbox somewhere I need to recheck, I currently can't work out what! Apologies for the 'newbie' question. Cheers!
Comments
Indeed - this is likely due to the main camera not being defined as it should be. AC will rely on the MainCamera for any clicks you make to the scene, so if it's not present or not following your GameCamera correctly, there'll be an issue.
To bring back the MainCamera, click on either of the Organise room objects buttons at the top of the Scene Manager. That should reconfigure your scene if anything was accidentally removed.
Otherwise, as @Alverik says, screenshots of your hierarchy - and detail of any messages in your Console - will be necessary.
I have 1 other camera in the scene which I'm using to make a security TV camera type thing, so I'm unsure if thats affecting anything. Below is a screenshot of the main camera which is turning off, the scene manager and the other camera just in case.
https://www.dropbox.com/s/fjc6x6sf79etzr5/ac1.png?dl=0
The initial console message is:
"Note: The MainCamera is parented to an unknown object. Be careful when moving the parent, as it may cause mis-alignment when the MainCamera is attached to a GameCamera."
Oh the main camera is under the Cameras/_GameCamera hierarchy.
Thanks guys, sorry - early days with AC!
You can copy your GameCamera2D component and paste its values into a new GameCamera2D prefab created in the Scene Manager to retain the changes you made to it. Once separated, I'd actually recommend removing that GameObject completely and place in the MainCamera prefab manually - you can find it in Assets/AdventureCreator/Prefabs/Automatic/MainCamera.