[Solved] Fixed camera angle in isometric perspective
Posted: Mon Jun 27, 2016 11:26 am
Hello everybody,
I've just started working with the dialogue system and I'm liking it a lot so far. However I have encountered one issue with camera angles which I was not able to resolve so far: My game uses an orthographic camera that follows the player at a certain angle and distance to maintain an isometric perspective (think of Diablo 1, for example). When I start a dialogue, I would like the camera to center on the person talking while maintaining the angle and distance to the actor to keep the exact same isometric perspective. Can I do this with the current camera angle system?
I tried to create a custom camera angle with the same distance and angle as for the player character, and it works in principle, but the problem is that the actor can be rotated on the Y axis when he/she/it is facing in a different direction. Then the custom angle is rotated with the actor as well, and the dialogue sequences take place from a different angle depending on who is talking and how he is rotated at the moment. This is very confusing since the player is used to see the game world from the default isometric perspective which then suddenly switches around according to who is talking.
Is there a possibility to keep the camera centered above the talking actor from a fixed distance / angle so the same perspective is maintained during the dialogue?
I've just started working with the dialogue system and I'm liking it a lot so far. However I have encountered one issue with camera angles which I was not able to resolve so far: My game uses an orthographic camera that follows the player at a certain angle and distance to maintain an isometric perspective (think of Diablo 1, for example). When I start a dialogue, I would like the camera to center on the person talking while maintaining the angle and distance to the actor to keep the exact same isometric perspective. Can I do this with the current camera angle system?
I tried to create a custom camera angle with the same distance and angle as for the player character, and it works in principle, but the problem is that the actor can be rotated on the Y axis when he/she/it is facing in a different direction. Then the custom angle is rotated with the actor as well, and the dialogue sequences take place from a different angle depending on who is talking and how he is rotated at the moment. This is very confusing since the player is used to see the game world from the default isometric perspective which then suddenly switches around according to who is talking.
Is there a possibility to keep the camera centered above the talking actor from a fixed distance / angle so the same perspective is maintained during the dialogue?