Game Development Community

Yack Pack - Quick camera movement problem

by Ingo Seidel · in General Add-On Discussion · 12/11/2009 (6:11 am) · 1 replies

Hi,

I have a problem with the YackPack. After I click on a dialog line, the camera makes a quick movement, as if it gets re-deployed from another field of view, some sort of quick panning, to finally end facing the interlocutor. Why is that and how can I get rid of this problem?

I am using TGEA 1.8.1
Thx

#1
11/12/2010 (3:50 pm)
I know this is old topic, so my answer isn't going to be useful to the OP, but for anyone searching the forums with this problem, here's my solution...

The jerking movement is caused by the calls to facePlayer in the onSayPhrase() function in yack.cs. These calls are useful to orient the NPC to the player, the player cam to the NPC. The function is only needed the first time you interact with the NPC, but happens every time the NPC talks. A simple solution would be to put a boolean keeping track that the two facePlayer() calls are only called once per conversation.

If you have multiple NPC's involved in a conversation, you would want to put more sophisticated logic to only execute these calls once every time the NPC talking changes.