Closed IJCoding closed 3 years ago
Making an area blocked until player interacts with the NPCs
Had to restart
Made an NPC (a player without the player Control script - but an NPC control script)
New variables to store previous targets/pivot
Functions to take / return control of the camera
Script for the npc to take and revert control of the camera
NPC becomes target of the camera when entering
And is no longer the focus when the player leves
NPC rotates like during dev of player - will re-read old fix
After reading old issue https://github.com/PlaceholderGames/2021-yr2-group-2/issues/30 realised i shouldnt be changing the pivot
Removed references to pivot in NPC script
Realised I should make pControlled false - when the camera is no longer player controlled (may find way to automate this)
Camera now slowly rotates to focus on the NPC in question
Testing to see if it works with height
works as intended
Added a way to automatise the finding of cameras - changed the name of the NPC control scrip to CameraSize (so it can be used for other items easily)
Social encounters are no longer being used but the camera focus may be used at a later date.
Aside from the platforming having sections blocked by social encounters is also key to the game. A social encounter should block off part of the map until it is acquired.