Camera script that follow two fighters (Sou Calibur like)

othelarianothelarian Posts: 3Member

Hi!

I'm working on a fight game, and I finally successed to write a script for my camera. The purpose of the script is that the camera must always show the two fighters, sideways, and don't bump when the fighters pass through each other (like when they jump above). When the fighters are growing far away from each other, the camera move back.

Let me know about what you're thinking about the script, I'll be pleased to have feedback.

https://gist.github.com/othelarian/120fa894d7b2c128f90a483e674c9455.js

Sign In or Register to comment.